Yum usage and yum usage

Source: Internet
Author: User

Yum usage and yum usage

I will not explain how to configure the repository here. Here I will only list the more practical usage of yum.

Yum install packagename # installation package

Yum remove packagename # delete a software package

Yum groupinstall packagegroup # Use the grouplist list that can be installed

Yum clean all # Clear the cache. The cache path is/var/cache/yum.

Yum localinstall rpmfile # Install the local package, -- nogpgcheck does not check the signature

Yum provides "*/gethostip" # used to find the package to be installed by the gethostip command

Yum list all # list all software packages

Yum list updates # view the packages that can be upgraded in the system

Yum update packagename # Upgrade the specified package

Yum info packagename # package details

Yum groupinfo packagegroup # Group details

Yum search packagename # Name of the fuzzy search package

Yum reinstall packagename # reinstall the installation package

Yum install (update) kernel # Upgrade the kernel and use uname-r to view the current kernel version

Createrepo-v path # create a software repository and generate a repodata folder. The path should be the upper-level directory of repodata.

In the repository configuration, You need to configure an Errata repository. After Successful Configuration, you can use the yum update command.

 

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.