Mainstream linux software manager-yum can be used in the linux release of Fedora, RedHat/centOS, SUSE1.1yum introduction package manager Yum (all called YellowdogUpdater, Modified) is a package manager in Fedora, RedHat, and Shell front-end package manager in SUSE and CentOS... mainstream linux software manager-yum can be used in the linux release of Fedora, RedHat/centOS, SUSE 1.1yum introduction package manager Yum (all called Yellow dog Updater, Modified) is a package manager in Fedora, RedHat, and Shell front-end package manager in SUSE and CentOS. Based on yum package management, yum packages can be automatically downloaded and installed from the specified server, and dependencies can be automatically processed. all dependent software packages can be installed at one time without the need for tedious download and installation. Software package sources available for Yum download include the Fedora package and the Fedora Extras from yumfusion and yum.livna.org, which are all maintained by the Linux community and are basically free software. All packages have an independent GPG signature, mainly for your system security. For users of Fedora core 4.0, the yum.livna.org signature is automatically imported and installed. The graphic front-end of the graphic front-end Yum mainly includes yumex and kyum. They are not independent of Yum, but the Yum graphics front-end. that is to say, they are both based on Yum installation and configuration while installing and using Yumex and kyum; therefore, you must install and configure Yum before using Yumex or kyum. Unzip 1.2yum installation ----------------------------------------------- Method 1: (recommended) Step 1: create a folder and copy all files on the disc to this folder: [root @ localhost ~] # Mkdir/yum [root @ localhost ~] # Cp-rvf/misc/cd/*/yum Step 2: Back up the repodata file. Because this file exists in four folders, backup is required. [Root @ localhost ~] # Mv/yum/Server/repodata. bak [root @ localhost ~] # Mv/yum/VT/repodata. bak [root @ localhost ~] # Mv/yum/Cluster/repodata. bak [root @ localhost ~] # Mv/yum/ClusterStorage/repodata. bak Step 3: install the toolkit: [root @ localhost ~] # Rpm-ivh/yum/Server/createrepo-0.4.11-3.el5.noarch.rpm Step 4: generate repository database: [root @ localhost ~] # Createrepo-g/yum/Server/repodata. bak/comps-rhel5-server-core.xml/yum/Server/[root @ localhost ~] # Createrepo-g/yum/VT/repodata. bak/comps-rhel5-vt.xml/yum/VT/[root @ localhost ~] # Createrepo-g/yum/Cluster/repodata. bak // yum/Cluster [root @ localhost ~] # Createrepo-g/yum/ClusterStorage/repodata. bak/comps-rhel5-cluster-st.xml/yum/ClusterStorage/Step 5: view the repository data file: [root @ localhost ~] # Ls/yum/Server/repodata/comps-rhel5-server-core.xml // classification of this file software package group. Filelists.xml.gz other.xml.gz primary.xml.gz // these three files are Package List files. Repomd. xml // This file is MD5 verification information. These files are available under/yum/VT/yum/Cluster/yum/ClusterStorage. To update the software package, you only need to put the downloaded software package in the Server or three other directories, and then use step 4 to regenerate the database file. Step 6: configure the client: [root @ localhost ~] # Cp/etc/yum. repos. d/rhel-debuginfo.repo/etc/yum. repos. d/chenbin. repo [root @ localhost ~] # 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 Step 7: view the software list. --------------------------------------------- Method 2: Step 1: Create a new folder and copy all the content of the CD to the folder: [root @ localhost ~] # Mkdir/yum [root @ localhost ~] # Cp-rvf/misc/cd/*/yum Step 2: install the toolkit: [root @ localhost ~] # Rpm-ivh/yum/Server/createrepo-0.4.11-3.el5.noarch.rpm Step 3: generate repository database: [root @ localhost ~] # Cd/yum [root @ localhost yum] # createrepo. // pay attention to the following. step 4: view the file: The file function is the same as that in [root @ localhost yum] # ls/yum/repodata/filelists.xml.gz other.xml.gz primary.xml.gz repomd. step 5 of xml: Client Configuration: [root @ localhost ~] # Cp/etc/yum. repos. d/rhel-debuginfo.repo/etc/yum. repos. d/chenbin. repo [root @ localhost ~] # 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 Clear the cache during yum installation: [root @ localhost ~] # Yum clean all at this point, yum installation is complete, but after installation using this method, the list of application-add and delete software is empty, but you can use yum to install software. [Root @ localhost ~] # Yum install/yum/Server/httpd-2.2.3-22.el5.i386.rpm [root @ localhost ~] # Yum remove httpd ------------------------------------------------- 1.3 Method 3: first put the disc into the optical drive, and then copy the configuration file: [root @ localhost ~] # Cp/etc/yum. repos. d/rhel-debuginfo.repo/etc/yum. repos. d/chenbin. repo finally edit the configuration file: [root @ localhost ~] # 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: [root @ localhost ~] # Yum clean all after installation, there is also a list in the application-add and delete software. Can I use yum for installation? Load [root @ localhost ~] # Yum install/misc/cd/Server/httpd-2.2.3-22.el5.i386.rpm [root @ localhost ~] # Yum remove httpd if you take out the CD, you will not be listed in application-add and delete software, as long as you put it on the CD. Commonly used policyum commands: 1. install software package: yum install packageyum localinstall package install software package from the local directory yum groupinstall group install all software packages for a certain component 2. update software package: yum update packageyum check-update list all the updatable software packages yum list updates mysql * find mysql update yum update all the updatable software packages yum update mysql * update all mysql software packages yum groupupdate group update all software packages for a component yum list all software packages available in the installed and warehouse yum list available list all available software packages in the warehouse yum list updates list software packages updated in the warehouse than the current system yum list installed list of installed software packages yum list recent list of software packages newly added to the repository yum info query package information 3. delete software package: yum remove packageyum groupremove group delete all software packages of a component 4. clear the package yum clean packages clear the package file yum clean metadata in the cache clear the metadata yum clean headers in the cache clear the header file yum clean all in the cache clear the package file, metadata, header file 5. search software package: yum search packageyum info package find information about a software package yum list package list software packages containing the specified information yum list installed software packages yum list extras list software packages not installed through the software repository yum list * ttp * Lists software packages whose titles contain ttp. yum list updates lists software packages that can be updated. 6. find out which software package provides a specific file: yum whatprovides filename example: yum whatprovides httpd. conf available options-disalbert EPO = lib disable a software repository-enalbert EPO = lib enable a software repository-C disable metadata using local cache example: yum-disalbert EPO = livna |-enalbert EPO = livna install mplayeryum-C info httpd
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.