curl安装新版本|linux 怎么升级替换旧版本的CURL

㈠ linux 怎么升级替换旧版本的CURL

|# curl -Vcurl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.19.1 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz [root@iZ259r7h4pfZ ~]# yum install -y curlLoaded plugins: securitybase | 3.7 kB 00:00 epel | 4.3 kB 00:00 epel/primary_db | 5.9 MB 00:00 extras | 3.4 kB 00:00 extras/primary_db | 29 kB 00:00 updates | 3.4 kB 00:00 updates/primary_db | 4.7 MB 00:00 Setting up Install ProcessResolving Dependencies–> Running transaction check—> Package curl.x86_64 0:7.19.7-46.el6 will be updated—> Package curl.x86_64 0:7.19.7-53.el6_9 will be an update–> Processing Dependency: libcurl = 7.19.7-53.el6_9 for package: curl-7.19.7-53.el6_9.x86_64–> Running transaction check—> Package libcurl.x86_64 0:7.19.7-46.el6 will be updated–> Processing Dependency: libcurl = 7.19.7-46.el6 for package: libcurl-devel-7.19.7-46.el6.x86_64—> Package libcurl.x86_64 0:7.19.7-53.el6_9 will be an update–> Running transaction check—> Package libcurl-devel.x86_64 0:7.19.7-46.el6 will be updated—> Package libcurl-devel.x86_64 0:7.19.7-53.el6_9 will be an update–> Finished Dependency ResolutionDependencies Resolved============================================================================================================================================================================================================ Package Arch Version Repository Size============================================================================================================================================================================================================Updating: curl x86_64 7.19.7-53.el6_9 updates 197 kUpdating for dependencies: libcurl x86_64 7.19.7-53.el6_9 updates 169 k libcurl-devel x86_64 7.19.7-53.el6_9 updates 247 kTransaction Summary============================================================================================================================================================================================================Upgrade 3 Package(s)Total download size: 614 kDownloading Packages:(1/3): curl-7.19.7-53.el6_9.x86_64.rpm | 197 kB 00:00 (2/3): libcurl-7.19.7-53.el6_9.x86_64.rpm | 169 kB 00:00 (3/3): libcurl-devel-7.19.7-53.el6_9.x86_64.rpm | 247 kB 00:00 ————————————————————————————————————————————————————————————————————Total 5.3 MB/s | 614 kB 00:00 Running rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning Transaction Updating : libcurl-7.19.7-53.el6_9.x86_64 1/6 Updating : libcurl-devel-7.19.7-53.el6_9.x86_64 2/6 Updating : curl-7.19.7-53.el6_9.x86_64 3/6 Cleanup : libcurl-devel-7.19.7-46.el6.x86_64 4/6 Cleanup : curl-7.19.7-46.el6.x86_64 5/6 Cleanup : libcurl-7.19.7-46.el6.x86_64 6/6 Verifying : libcurl-devel-7.19.7-53.el6_9.x86_64 1/6 Verifying : libcurl-7.19.7-53.el6_9.x86_64 2/6 Verifying : curl-7.19.7-53.el6_9.x86_64 3/6 Verifying : libcurl-devel-7.19.7-46.el6.x86_64 4/6 Verifying : curl-7.19.7-46.el6.x86_64 5/6 Verifying : libcurl-7.19.7-46.el6.x86_64 6/6 Updated: curl.x86_64 0:7.19.7-53.el6_9 Dependency Updated: libcurl.x86_64 0:7.19.7-53.el6_9 libcurl-devel.x86_64 0:7.19.7-53.el6_9 Complete![root@iZ259r7h4pfZ ~]# curl -Vcurl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.27.1 zlib/1.2.3 libidn/1.18 libssh2/1.4.2Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz

㈡ 如何在 Linux 中安装最新的 Python 3.6 版本

#下载源码包安装,先装wget,或curl。yuminstallwget#再安装解压缩和编译环境:yuminstallzlib-develbzip2-developenssl-develncurses-develsqlite-develreadline-develtk-devel#下载源码包:cd/usr/local/srcwgethttps://www.python.org/ftp/python/3.6.0/Python-3.6.0.tgz#解压:tar-zxf/usr/local/src/Python-3.6.0.tgz&&cdPython-3.6.0mkdir/usr/local/python3#编译安装:./configure–prefix=/usr/local/python3make&&makealtinstall#建立链接ln-s/usr/local/python3/bin/python3.6/usr/bin/python3#可直接使用"python3"ln-s/usr/local/python3/bin/pip3.6/usr/bin/pip3

——————-我-是-分-割-线———————————-

把分割线以上的内容保存为install_python3.sh,然后加上运行权限:

chmoda+xinstall_python3.sh

用root权限运行

./install_python3.sh

结束后就安装成功了。

#可直接使用"pip3"

#最后测试下

python3

pip3

㈢ linux curl 命令怎么在windows上实现

可以在windows里安装curl命令,去官网下载下来,然后照里面的安装说明安装就可以了。。。


赞 (0)