2. Command yum install yum-fastestmirror Automatically search for the fastest mirror plugin yum install yumex Find and show yum search Find packages with YUM yum list lists all installed and installable packages yum list updates lists all updateable packages yum list installed lists all installed packages yum list extras lists all installed packages that are not in the Yum Repository yum list lists the installation of the specified package yum info lists information about all packages yum info Use YUM to get package information yum info updates lists all updateable package information yum info installed lists all installed package information yum info extras List all installed packages that are not in the Yum Repository yum provides lists which files are provided by the package yum groupinfo displays program group information yum search string Find installation packages based on keyword strings yum deplist to view package dependencies Install upgrade uninstall yum check-update lists all updatable software yum install install all yum install installs the specified package yum update update all yum update update the specified package yum upgrade upgrades the specified package yum grouplist show installed program groups yum groupinstall installer group yum groupremove uninstalls a program group yum groupupdate upgrade program group yum remove removes a package yum groupremove removes a program group clear cache yum clean packages clears the packages in the cache directory yum clean headers clears the headers in the cache directory yum clean all clears the packages and old headers in the cache directory Some common program groups yum -y groupinstall “X Window System” yum -y groupinstall “GNOME Desktop Environment” yum -y groupinstall “KDE (K Desktop Environment)” yum -y groupinstall “Server Configuration Tools” yum -y groupinstall “Development Libraries” yum -y groupinstall “Development Tools” yum -y groupinstall “Windows File Server” yum -y groupinstall “Chinese Support” yum -y groupinstall “MySQL Database” yum -y groupinstall “FTP Server” yum -y groupinstall “Java Development” yum -y groupinstall “Web Server” yum check-update checks all packages available for update yum update downloads and updates all packages installed by the system yum upgrade is a large-scale version upgrade. Unlike yum update, even old and outdated packages are also upgraded. yum install <packages> install new packages yum update <packages> update the specified packages yum remove <packages> uninstalls the specified package yum groupinstall <groupnames> install packages in the specified software group yum groupupdate <groupnames> update packages in the specified software group yum groupremove <groupnames> Uninstall packages in the specified software group yum grouplist View installed and available software groups in the system yum list lists all rpm packages that can be installed or updated and installed in the repository yum list <regex> lists the rpm packages that can be installed or updated and installed that match the regular expression in the repository yum list available lists all rpm packages that can be installed in the repository yum list available <regex> lists all installable rpm packages in the repository that match the regular expression yum list updates lists all rpm packages that can be updated in the repository yum list updates <regex> lists all updateable rpm packages that match the regular expression in the repository yum list installed lists all installed rpm packages in the repository yum list installed <regex> List all installed rpm packages in the repository that match the regular expression yum list extras lists installed rpm packages that are not included in the repository yum list extras <regex> List installed rpm packages that match the regular expression but are not included in the repository yum list recent lists packages recently added to the repository yum search <regex> Detects all available software names, descriptions, profiles, and listed maintainers, looking for values that match a regular expression yum provides <regex> to detect files contained in packages and functions provided by the software to find values that match regular expressions yum clean headers clears the rpm header files in the cache yum clean packages clears the rpm package files in the cache yum clean all clears the rpm header and package files in the cache yum deplist <packages> Display package dependencies When using yum for the first time or the yum repository is updated, yum will automatically download all the required he ade rs and place them in the /var/cache/yum directory, which may take a long time. Package information can also be listed using the yum info command, the parameters available for yum info are the same as for yum list. The yum command can also use the -y parameter to use yes to answer the questions asked when the command is running, such as yum -y install vsftpd, so that you don't have to enter yes/y when installing the software Example of using yum command tool 1. Upgrade the system [root@localhost ~]#yum update 2. Install the specified package, I like to use the following command [root@localhost ~]# yum -y install vsftpd 3. Upgrade the specified software package [root@localhost ~]# yum -y update mysql 4. Uninstall the specified software package [root@localhost ~]# yum -y remore vsftpd mysql 5. View the installed and available software groups in the system. For available software groups, you can choose to install [root@localhost ~]# yum grouplist 6. Install one of the available software groups shown in the previous command, God's Editor-Emacs, with about 12 packages installed [root@localhost ~]# yum -y groupinstall Emacs 7. Update the packages in the specified software group [root@localhost ~]# yum -y groupupdate Emacs 8. Uninstall the software packages in the specified software group. For Emacs, 12 software packages were installed during installation, but only 4 software packages were uninstalled during uninstallation! [root@localhost ~]# yum -y groupremove Emacs 9. Clear the rpm header files and package files in the cache [root@localhost ~]# yum clean all 10. Search for related packages [root@localhost ~]# yum -y search Emacs 11. Display information about the specified software package [root@localhost ~]# yum info Emacs Similar to the information displayed by rpm -qi emacs, but not exactly the same 12. Query the dependency information of the specified software package. There are many modules that emacs depends on. [root@localhost ~]# yum deplist emacs 13. List all packages starting with yum [root@localhost ~]# yum list yum\* 14. List installed rpm packages that are not included in the repository # yum list extras
Detailed explanation of yum command under Linux
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326523263&siteId=291194637
Recommended
Ranking