In Fedora, rpm is mainly used to operate a separate rpm software package. If you use rpm to install the software, you must manually solve the dependency of the software package, which is quite troublesome. Yum is much better. As long as the software library contains this software, a command will solve the problem, and yum will solve the dependency problem of the software package on its own. I. rpm usage // 1. Check whether rpm-qa is installed | grepmysql // 2. Install the package rpm-ivhbar-1.0-1.i386
In Fedora, rpm is mainly used to operate a separate rpm software package. If you use rpm to install the software, you must manually solve the dependency of the software package, which is quite troublesome. Yum is much better. As long as the software library contains this software, a command will solve the problem, and yum will solve the dependency problem of the software package on its own.
I. Use of rpm
// 1. Check for Installation
Rpm-qa | grep mysql
// 2. install the software package
Rpm-ivh bar-1.0-1.i386.rpm
// 3. Update the Software Package
Rpm-Uvh foo-2.0-1.i386.rpm
// 4. Uninstall the Software Package
Rpm-e foo
// 5. Check where the software package is installed
Rpm-ql php
// 6. query the information of a software package.
Rpm-qi php
// 7. software packages and files on which the software is installed
Rpm-qR squid
Ii. Use of yum
// 1. install the software package
Yum install bmp-mp3
// Advantages: Software Package dependencies are resolved by themselves, such as the above, originally we only install bmp-mp3, the result of yum installation also installed id3lib; bmp
// 2. Upgrade the Software Package
Yum update bmp-mp3
Yum update // upgrade all packages
Yum upgrade // upgrade all packages and delete outdated packages
// 3. Delete the Software Package
Yum remove bmp-mp3
// 4. Check whether the yum source has an unspecified Installation
Yum list // list available packages in the repository
Yum list | grep squid // list squid packages in the repository
Yum list installed // list the packages installed on the local machine
Yum list updates // list local updatable packages
Yum list available // list available packages in the repository
// 5. Check Basic Information
Yum info squid