Yum Package Management Learning

Source: Internet
Author: User

Q1:what

First ask the Almighty man in Linux.

Mans Yum

Simply put, Yum is a apt-get-like package Manager.

Also attached are the yum Wikipedia.

Q2:how

Since it says something like Apt-get. Then combine the actual combat to learn yum immediately.

First explain the Blogger learning platform CentOS LiveCD, then the corresponding package is packagename.rpm. Familiarize yourself with the basic commands first.

Update Software Cache

Yum check-update

Yum automatically updates the list of cached packages when executing some commands. But there's always nothing wrong with knocking.

Upgrading an Installed Package

sudo Yum Update

Find Packages

Yum Search PackageName

Installing packages from the Warehouse

sudo Yum Install Package
Yum Install package-y

-Y is the Yum search warehouse does not prompt for automatic installation after completion

Install the software locally

sudo Yum Install package.rpm

Remove software

sudo Yum Remove Package

Almost understand the basic commands for package management. Here's an example of installing Firefox

Update cache first, install below

Uninstall Firefox

Q3:why

Finally, Yum is able to automatically download RPM packages from the specified server and install them, can handle dependencies, and install all dependent packages at once, without the hassle of downloading and installing them over and over again. Seems to be more than apt worry.

Get a deeper look at Yum.

Reference: Wikipedia

Yum Package Management Learning

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.