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.