编程知识 cdmana.com

Three ways of Linux software installation

Linux Three ways to install software

1.yum

​ Grammar format :
​ yum -y install package.name
​ -y yes # Automatic input when prompted yes
​ Case study : install ifconfig command route command
​ Most of the commands belong to other packages
First step : How to know which package the command belongs to
​ 1) Baidu
​ 2) [root@oldboyedu ~]# yum provides wget
​ Loaded plugins: fastestmirror
​ Loading mirror speeds from cached hostfile
​ base: mirrors.aliyun.com
​ extras: mirrors.aliyun.com
​ updates: mirrors.aliyun.com
​ wget-1.14-18.el7_6.1.x86_64 : A utility for retrieving files using the HTTP or FTP protocols
​ Repo : base
The second step : ifconfig Belong to net-tools package
​ install net-tools package

Case study : install rz Upload sz download command
yum provides sz
Belong to lrzsz package
yum -y install lrzsz

yum characteristic : Automatically resolve dependency problems

Delete Software :
yum remove package.name # Automatically resolve dependency problems
[root@oldboyedu ~]# yum -y remove lrzsz
yum reinstall package.name # reinstall
yum list # List all the software in the warehouse
yum repolist # View all warehouses in the current system
yum clean all# Empty cache

2.rpm

Grammar format :
rpm -ivh package.rpm( Package must exist Download the package to a directory in advance ) What packages are missing, what packages are manually installed

characteristic : Automatic resolution of dependencies is not supported

-i install install
-v verbose Show the installation process
-h Show installation progress

Check if the software is installed

[root@oldboyedu ~]# rpm -q lrzsz # see lrzsz Whether to install
lrzsz-0.12.20-36.el7.x86_64
[root@oldboyedu ~]# rpm -q lrzsz wget curl # Check if multiple commands are installed
lrzsz-0.12.20-36.el7.x86_64
wget-1.14-18.el7_6.1.x86_64
curl-7.29.0-51.el7.x86_64

rpm -qa # View all installed software packages of the current system
rpm -ql # View all the contents of the installation package
rpm -e # Remove package
[root@oldboyedu ~]# rpm -qa lrzsz
lrzsz-0.12.20-36.el7.x86_64
[root@oldboyedu ~]# rpm -e lrzsz
[root@oldboyedu ~]# rpm -qa lrzsz

3. Compilation and installation

​ /usr/local Catalog

​ need :
​ Download the source code
​ cd Source package
​ .configure
​ make && make install

版权声明
本文为[Myrica rubra]所创,转载请带上原文链接,感谢

Scroll to Top