Use of rpm and yum in Fedora

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.