Linux Yum installation process graphic explanation

Source: Internet
Author: User
Tags gpg mysql update

Yum can search software dependencies from many package repositories, thereby reducing the problems associated with dependencies. There is also the use of the graphical interface, in the application-add removal software under the browser is empty. Such as:

The first method: (recommended) First step: Create a new folder and copy all the files in the disc into this folder: [[[email protected] ~]# mkdir/yum[[email protected] ~]# CP-RVF/ misc/cd/*/yum Step Two: Back up the Repodata file. Because there are four folders with this file, so you have to back up. [[email protected] ~]# mv/yum/server/repodata/yum/server/repodata.bak[[email protected] ~]# mv/yum/vt/ Repodata/yum/vt/repodata.bak[[email protected] ~]# Mv/yum/cluster/repodata/yum/cluster/repodata.bak[[email  protected] ~]# mv/yum/clusterstorage/repodata/yum/clusterstorage/repodata.bak Step three: Install the toolkit:[[email  Protected] ~]# rpm-ivh/yum/server/createrepo-0.4.11-3.el5.noarch.rpm Fourth step: Generate Warehouse database: [[email protected] ~]# Createrepo-g/yum/server/repodata.bak/comps-rhel5-server-core.xml/yum/server/[[email protected] ~]# Createrepo-g/yum/vt/repodata.bak/comps-rhel5-vt.xml/yum/vt/[[email protected] ~]# createrepo-g/yum/Cluster/ repodata.bak//yum/cluster[[email protected] ~]# createrepo-g/yum/clusterstorage/repodata.bak/ comps-rhel5-cluster-st.xml/yum/clusterstorage/Fifth Step: View warehouse DataFile: [[email protected] ~]# ls/yum/server/repodata/comps-rhel5-server-core.xml //The classification of this file package group. filelists.xml.gz other.xml.gz primary.xml.gz //these three files as a package list file. repomd.xml  //This file is MD5 checksum information. There are several files under the/yum/vt/yum/cluster/yum/clusterstorage, and this is the same. If you want to update the package, simply put the downloaded package in the server or three other directories, then use the fourth step to regenerate the database file. Sixth step: Client configuration: Mainly modify the following red section: [[email protected] ~]# cp/etc/yum.repos.d/rhel-debuginfo.repo/etc/yum.repos.d/ Chenbin.repo[[email protected] ~]# vi/etc/yum.repos.d/chenbin.repo[rhel-server]name=red Hat Enterprise Linux $ releasever-$basearch-debugbaseurl=file:///yum/serverenabled=1gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/ rpm-gpg-key-redhat-release[rhel-vt]name=red Hat Enterprise Linux $releasever-$basearch-debugbaseurl=file:///yum/ Vtenabled=1gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-redhat-release[rhel-cluster]name=red Hat Enterprise Linux $releasever-$basearch-debugbaseurl=file:///yum/clusterenabled=1gpgcheck=1gpgkey=file:///etc/pki /rpm-gpg/rpm-gpg-key-redhat-release[rhel-clusterstorage]name=red Hat Enterprise Linux $releasever-$basearch- debugbaseurl=file:///yum/clusterstorageenabled=1gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/ Rpm-gpg-key-redhat-release Seventh: see: The list of software has appeared.

If you select the software repository in the editor, it appears:

If you remove the check here, you can open it again without the software list, and the enabled=0 under the/etc/yum.repos.d/chenbin.repo configuration file. Clear the Cache for Yum installation: [[email protected] ~]# Yum Clean all install a software try: [[email protected] ~]# rpm-ivh/yum/server/ Httpd-2.2.3-22.el5.i386.rpmwarning:/yum/server/httpd-2.2.3-22.el5.i386.rpm:header V3 DSA signature:nokey, key ID 37017186error:failed dependencies:libapr-1.so.0 is needed by httpd-2.2.3-22.el5.i386 libaprutil-1.so.0 is Needed by httpd-2.2.3-22.el5.i386 cannot be installed because of dependencies. Install with the following command: [[email protected] ~]# Yum install/yum/server/httpd-2.2.3-22.el5.i386.rpm system will be installed automatically. Yum unloading is downloaded as follows: [[email protected] ~]# Yum remove httpd. 1.2 The second method:First step: Ibid., create a new folder and copy the contents of the disc to the folder: [[[email protected] ~]# mkdir/yum[[email protected] ~]# cp-rvf/misc/cd/ */yum Step Two: Installation Kit: [[email protected] ~]# rpm-ivh/yum/server/createrepo-0.4.11-3.el5.noarch.rpm step three: Generate the Warehouse database: [[ Email protected] ~]# cd/yum[[email protected] yum]# createrepo .     // Note the following. Fourth step: View files: File function Ibid.: [[email protected] yum]# ls/yum/repodata/filelists.xml.gz other.xml.gz  Primary.xml.gz repomd.xml Step Fifth: Client configuration: [[email protected] ~]# cp/etc/yum.repos.d/rhel-debuginfo.repo/etc/ Yum.repos.d/chenbin.repo[[email protected] ~]# vi/etc/yum.repos.d/chenbin.repo[rhel-chenbin]name=red Hat Enterprise Linux $releasever-$basearch-debugbaseurl=file:///yum/enabled=1gpgcheck=1gpgkey=file:///etc/pki/ Rpm-gpg/rpm-gpg-key-redhat-release clearing the cache for yum installation: [[email protected] ~]# yum clean all here, yum installation is complete, But using this method after installation in the application-add Remove software list is empty, but using Yum to install the software is possible. [[email protected] ~]# yum INSTALL/YUM/SERVER/HTTPD-2.2.3-22.EL5.I386.RPm[[email protected] ~]# Yum Remove httpd 1.3 The third method:First put the disc in the CD-ROM: Then copy the configuration file: [[email protected] ~]# cp/etc/yum.repos.d/rhel-debuginfo.repo/etc/yum.repos.d/ Chenbin.repo Last edit configuration file: [[email protected] ~]# vi/etc/yum.repos.d/chenbin.repo[rhel-server]name=red Hat Enterprise Linux $releasever-$basearch-debugbaseurl=file:///misc/cd/serverenabled=1gpgcheck=1gpgkey=file:///etc/ pki/rpm-gpg/rpm-gpg-key-redhat-release[rhel-vt]name=red Hat Enterprise Linux $releasever-$basearch-debugbaseurl= File:///misc/cd/vtenabled=1gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-redhat-release[rhel-cluster] name=red Hat Enterprise Linux $releasever-$basearch-debugbaseurl=file:///misc/cd/clusterenabled=1gpgcheck=1gpgkey= file:///etc/pki/rpm-gpg/rpm-gpg-key-redhat-release[rhel-clusterstorage]name=red Hat Enterprise Linux $releasever-$ basearch-debugbaseurl=file:///misc/cd/clusterstorageenabled=1gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/ Rpm-gpg-key-redhat-release Clear cache: [[email protected] ~]# Yum Clean All this method is installed after the application-add delete software also has a list. You can also use Yum to install unloading[[email protected] ~]# yum install/misc/cd/server/httpd-2.2.3-22.el5.i386.rpm[[email protected] ~]# Yum Remove httpd If you take the CD out, in the application-add remove software There is no list, just put in the CD. 1.4 Summary: YUM Common commands:1. Install packages: Yum Install Packageyum Localinstall package installs packages from native directory Yum Groupinstall Group installs all packages for a component 2. Update package: Yum update Packageyum check-update List all updatable packages Yum list updates mysql* find MySQL update yum update update all updatable packages Yum Update mysql* update all MySQL software Package Yum groupupdate Group update all packages for a component Yum list lists all packages available in the installed and warehouse Yum list available lists all the available packages in the Repository Yum list updates are listed in the warehouse more than the current system The new package Yum List installed lists the installed Packages Yum List recent lists the new packages added to the repository Yum Info query package information       3. Delete package: Yum Remove Packageyum groupremove Group removes all packages for a component 4. Clear Package Yum Clean packages clears the package files left in the cache Yum Clean metadata cleanup left in slow The meta data in the store Yum clean headers clears the header files left in the cache yum Clean all clears the package file, metadata, header files 5. Search Package: Yum Search Packageyum Info packages find information on a package Yum Li St Package lists packages containing specified information Yum list installed lists installed packages Yum List Extras lists packages that are not installed through the Software repository Yum list *ttp* list title contains TTP packages Yum list up Dates List of packages that can be updated 6. Find out what packages are provided for a particular file: Yum whatprovides filename Example: Yum whatprovides httpd.conf available options –disalberepo=lib Disable a software warehouse –enalberepo=lib enable a software warehouse-c disable metadata using native cache example: YuM–disalberepo=livna|–enalberepo=livna Install mplayeryum-c Info httpd

Linux Yum Installation process text-detailed

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.