Yum Common commands

Source: Internet
Author: User
Tags gpg

  yum check-update  Check all packages available for update     yum update  download update system All packages installed     Yum upgrade  large-scale version upgrades, unlike Yum Update, even older obsolete packages are upgraded     yum install   Install new packages     Yum Update   Updates the specified package     yum Remove   Uninstall the specified package     yum groupinstall   Install the packages in the specified software group     yum groupupdate   Update the packages in the specified software group     yum Groupremove   Uninstalling packages in the specified software group     yum grouplist  viewing installed and available software groups in the system     Yum list  Lists all the RPM packages that can be installed or updated and installed in the Repository     Yum list   list the available installed or updated and installed RPM packages in the repository that match regular expressions     Yum List available  lists all the RPM packages that can be installed in the Repository     Yum list available   list all available RPM packages in the repository that match regular expressions     Yum List updates  lists all the RPM packages that can be updated in the Repository     Yum list updates   Lists all available RPM packages in the repository that match regular expressions     Yum list installed  lists all installed RPM packages in the Repository     yum list instalLED   Lists all installed RPM packages in the repository that match regular expressions     Yum list extras  lists the RPM packages that have been installed but are not included in the repository      Yum List Extras   lists installed RPM packages that match regular expressions, but not included in the Repository     Yum list recent  lists the packages that were recently added to the repository and nbsp;   Yum Search   detect the names, descriptions, overviews, and listed maintainers of all available software, find values that match regular expressions     Yum provides   Detects the files contained in the package and the functionality provided by the software, finds values that match regular expressions     yum clean headers  clears the RPM header files in the cache     Yum Clear packages  Clear Cache rpm package files     Yum clean all  Clear Cache rpm header files and package files     Yum deplist   Display dependency information for a package     when the first use of the Yum or Yum repositories is updated, Yum automatically downloads all the required he ADE RS to be placed in the/var/cache/yum directory, which may take a long time.     can also use the Yum Info command to list package information, and Yum info has the same parameters as the Yum list. The     Yum command can also use the-y parameter to answer the questions raised when the command is run with ye S, such as yum-y install VSFTPD, so that you do not have to enter yes/y when installing the software   &nbs P Yum Command Tool Use example     1, upgrade system     [[[email protected] ~] #yum update    2, installSpecify the package that I like best with the following command     [[email protected] ~]# yum-y install vsftpd    3, upgrade the specified package     [[email protected] ~]# yum-y update mysql    4, uninstalling the specified package     [[ Email protected] ~]# yum-y remore vsftpd mysql    5, view the installed and available software groups on the system, and for the available software groups, you can choose to install      [[email protected] ~]# yum grouplist    6, install a software group in the available software groups shown in the previous command, the editor of God-emacs, Approximately 12 packages installed     [[email protected] ~]# yum-y groupinstall emacs    7, update packages in the specified software group & nbsp;   [[email protected] ~]# yum-y groupupdate emacs    8, uninstall packages from the specified software group, for Emacs, There are 12 packages installed, but only 4 packages are uninstalled!     [[email protected] ~]# yum-y groupremove emacs    9, clear the cache of RPM header files and package files      [[email protected] ~]# yum clean all    10, search related packages     [[email  Protected] ~]# yum-y search emacs   11, display the information of the specified package     [[email protected] ~]# yum info emacs    and Rpm-qi Emacs display the same information, But not exactly the same     12, query the dependent information of the specified package, Emacs relies on a lot of modules Ah     [[email protected] ~]# yum deplist emacs    13, List all packages that start with Yum     [[email protected] ~]# yum list yum\*  & nbsp 14. List the RPM packages installed but not included in the Repository     # Yum list extras    most commonly used or 3rd, 4 commands     Number of view:225    No related posts.    starter Yum upgrade system     first execute Yum check-u Pdate must take a long time, because Yum must check all header data on the server; Once done, the Yum Check-update will soon be executed.     before using Yum to upgrade the system, based on system security considerations, Yum requires the GPG authentication key for all RPM packages, and after the integrity of the upgrade RPM suite is certified, it is safe to automatically upgrade your system, so you must first load the Fedora DVD installation CD Rpm-gpg-key and Rpm-gpg-key-fedora these two GPG certified key files in order to perform Yum update to automatically upgrade all RPM kits.     # yum Check-update (check for packages that need upgrading)     # rpm--import rpm-gpg-key    # RPM- -import RPM-GPG-KEY-FEDORA &NBsp;  # yum-y Update (auto-upgrade all RPM kits)     Yum program has automatically placed Yum.cron in the/etc/cron.daily directory of the system and will help you automate the Yum system every day Upgrade the program, automatically check and update the server update on the new RPM suite, all the yum execution process will be recorded in the/var/log/yum.log, we just have to make sure that Cron, yum service has been initiated, will be a daily Yum update action and nbsp;   #chkconfig crond on    #chkconfig yum on    Yum related kits      Yum extender    is a graphical interface of the Yum update program, which appears in the Xwindow application/System Tools/yum Extension program after installation.     yum-y Install yumex    yum updateonboot    if the computer is not powered on 24 hours, The host that does not cooperate with Cron scheduled updates, can be set at boot time to check if there is a package to be updated.     yum-y Install yum-updateonboot    chkconfig yum-updateonboot on    Common Instructions     Update kit for yum     Yum Update [Kit 1] [Kit 2] [...]   Yum update    Installation Kit     Yum Install Kit 1 [Kit 2] [...]     Yum install php*    removal kit     Yum Remove Kit 1 [Kit 2] [...]   Yum Removel NMAP  &NBsp List all packages     Yum list    list all the packages that can be updated   Yum list updates    list all installed packages & nbsp Yum list installed    lists all packages installed but not within Yum Repository   Yum list extras    Check for updated kits & nbsp Yum check-update    Lists all kit information   Yum info    lists all the packages that can be updated   Yum info updates     List all installed kit information   YUM Info installed    lists all packages installed but not within Yum Repository   Yum Info extras    list What files The kit provides     yum provides kit 1 [Kit 2] [...]     Search Kits     yum search [parameters]

Yum Common commands

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.