CentOS Package Installation

Source: Internet
Author: User
Before using ubuntu, you need to start to turn to centos. the installation of centos software package can be roughly divided into two types: [centos] rpm file installation, using the rpm Command & lt; ---- & gt; [ubuntu] deb file installation, use the dpkg command [centos] yum to install & lt; ----- & gt; [ubuntu... before using ubuntu, you need to start to switch to centos. the installation of centos software package can be roughly divided into two types: [centos] rpm file installation, use the rpm command <----> [ubuntu] deb file for installation, and use the dpkg command [centos] yum for installation <-----> [ubuntu] apt-get to install the rpm command (1) query system installed software Information 1) query system installed software rpm-qa 2) query which software package the installed file belongs to; rpm-qf file name absolute path 3) query where installed software packages are installed; rpm-ql software name 4) query the information of an installed software package rpm-qi software name 5) Check the configuration file of the installed software; rpm-qc software www.2cto.com 6) view a document on software installation: rpm-qd software 7) check the software packages and files on which the software is installed; rpm-qR software name (2) query information about uninstalled software packages (1) view the purpose and version of a software package; rpm-qpi rpm file 2) view the files contained in a software package; rpm-qpl rpm file 3) view the file location of the software package; rpm-qpd rpm file 4) view the configuration file of a software package; rpm-qpc rpm file 5) view the dependencies of a software package rpm-qpR rpm file (3) installation, upgrade, and deletion of the software package 1) install or upgrade an rpm package rpm-ivh rpm file [install] rpm-Uvh rpm file [update] 2) delete an rpm package rpm-e software name regardless of dependency issues, force remove software, add -- nodeps (IV) signature import rpm -- import signature file rpm -- import RPM-GPG-KEY yum management software (I) yum basic concepts 1) after the above Command) what is yum? yum = Yellow dog Updater. The main function of Modified is to conveniently add/delete/update RPM packages. it automatically solves the dependency problem of the package. it can easily manage a large number of system updates. 2) yum features the ability to configure multiple resource libraries (Repository) with simple configuration files (/etc/yum. conf automatically solves the dependency problems encountered when the rpm Package is added or deleted. it is easy to maintain consistency with the RPM Database. 3) install yum with CentOS (yum -*. noarch. rpm) # rpm-ivh yum -*. noarch. rpm first needs to import the system's RPM-GPG-KEY before enabling yum for the first time: (2) use of the yum command when using the yum management software for the first time, yum automatically downloads the required headers and stores them in the/var/cache/yum Directory. 1) update the rpm package www.2cto.com # check the software package yum check-update # update all software packages yum update # update the specific software package yum update kernel # large-scale upgrade yum upgrade2) installation and deletion of rpm packages # installation and deletion of rpm packages yum install xxx [service name] yum remove xxx [service name] 3) yum cache information # clear cache rpm Package File yum clean packages # clear cache rpm header file yum clean headers # clear cache old header file yum clean old headers # clear cache the old rpm header file and package file yum clean all4) software package information query # list all rpm packages that can be installed or updated in the resource library yum list # list specific rpm packages that can be installed or updated and installed yum list firfox * N in the resource library: you can use wildcards in the rpm Package name, query similar rpm packages # list all the rpm packages that can be updated in the resource library yum list updates # list all installed rpm packages yum list installed # list installed but not included in the Resource Library rpm package yum list extrasN: download and install the rpm package through the website. # The rpm package information is displayed (the info parameter is the same as the list ), list information about all rpm packages that can be installed or updated in the resource library yum info # list the specific information about the rpm packages that can be installed or updated in the resource library yum info firefox * N: you can use a match in the rpm Package name # list information about all the rpm packages that can be updated in the resource library yum info updates www.2cto.com # list information about all the rpm packages that have been installed yum info installed # list information about the installed rpm packages that are not included in the resource library yum info extrasN: download and install the rpm package through the website. # search for an rpm Package that matches a specific character. yum search firofox # search for an rpm package containing a specific file. yum provides firefox (3) yum software source update http://mirrors.163.com/.help/centos.html
Author: yinjiabin
Related Article

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.