YUM configuration yum, short for Yellow dog Updater Modified, was originally developed by the developer of the yellow dog release Terra Soft, then called yup (yellow dog updater), after the du The university's [email=Linux@Duke]Linux@Duke[/email] development team has made improvements, not to mention this name. The key point of yum is to have a reliable repository. As the name suggests, this is the software repository. It can be a http or ftp site, or it can be a local software pool, but it must contain the rpm header. The header includes various rpm packages. Information, including descriptions, functions, files provided, dependencies, etc. It is the collection of these headers and their analysis to automate the rest of the tasks. yum has the following characteristics: It is possible to configure multiple repositories at the same time. The file (/etc/yum.conf) automatically resolves the dependency problems encountered when adding or removing rpm packages. It is convenient to maintain consistency with the RPM database. 1. YUM client configuration: [root@rhel ~]# vim /etc/Yum.repos.d/rhel-debuginfo.repo [rhel-debuginfo] //[] is the name of the repository name=Red Hat Enterprise Linux $releasever - $basearch - Debug //is the description of the repository can also be said to be the name Baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/$basearch/Debuginfo///Location of the warehouse enabled=0 //Whether this repository is enabled, 1 is used , 0 is disabled gpgcheck=1 //is Check the GPG signature (used to verify that the package to be installed is REDHAT official) gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release //GGPKEY storage address we need to use The following command imports this signature. To use this function [root@rhel ~]# rpm -import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release 2. YUM server configuration: 1) Install vsftp [root@Server]# rpm -ivh vsftpd-2.0.5-10.e15.i386.rpm 2) After the installation is successful, copy all the files on the CD to the /var/ftp/pub directory [root@Server]# cp -rv ../* /var/ftp/pub 3) Switch to the /var/ftp/pub directory and delete *.html Delete Server/repodata/TRANS.TBL Delete the three files VT/repodata/TRANS.TBL files; if you do not delete the above The file may also be successful, but there may be unexpected problems. It is recommended to remove rm -f *.html rm -f Server/repodata/TRANS.TBL rm -f VT/repodata/TRANS.TBL 4) Install the createrepo tool and use this tool to generate the YUM universal database [root@rhel5 Server]# rpm -ivh createrepo-0.4.4-2.fc6.noarch.rpm [root@rhel5 Server]# createrepo -g /var/ftp/pub/Server/repodata/comps-rhel5-server-core.xml /var/ftp/Pub/Server/[root@rhel5 Server]# createrepo -g /var/ftp/pub/VT/repodata/comps-rhel5-vt.xml /var/ftp/pub/VT/5) Then start the FTP service again: service Vsftpd restart 1. List all updateable software list commands: yum check-update2. Install all update software commands: yum update3. Install only the specified software commands: yum install4. Update only the specified software commands: yum update5. All installable software list commands: yum list6. The deleted command is yum remove xxx. Like the installation, yum will also query the database and give hints for resolving dependencies. 7.YUM query software information command: yum search8. List all installable package commands: yum list9. List all updateable package commands: yum list updates10. List all installed package commands: yum list Installed11. Lists all installed package commands that are not in Yum Repository: yum list extras12. Use YUM to get package information command: yum info13. List all installed package information commands: yum info installed14. List all Package information command installed but not in Yum Repository: yum info extras15. Clearing the YUM cache yum will store the downloaded package and header in the cache without being automatically deleted. If we think that they take up disk space, you can use the yum clean command to clear. The more accurate usage is yum clean headers to clear the header, yum clean packages to clear the downloaded rpm package, yum clean all one brain. 16. Clear the cache directory (/Package command under var/cache/yum): yum clean packages17. Clear the headers command in the cache directory (/var/cache/yum): yum clean headers
(1) Ifconfig command The first type uses the ifconfig command to configure the ip
First, the Linux system startup process About the Linux system startup process we can divide into th
Slightly larger sites are inevitably load balanced, but hardware load balancing is expensive. There
The web server avoids some unnecessary troubles. You can not display the version information of apa
How to manually clear or refresh the SWAP partition of Linux
Scp copying between Linux hosts without entering a password
Linux software installation introduction
Several ways to run linux process background
Kobject, kset and its relationship of device model
Linux zombie process and its solution
P2v migration linux server under xenserver
Linux tuning (maximum number of connections modified)
Linux desktop environment GNOME practical skills
Linux df Command Disk Directory Management Shows the available disk space on the disk partition.
Install win7 prompt failed to find any drive
Take a closer look at Win8's new task manager
Make good use of netstat command avatar Win7 security master
How to analyze Nginx logs in Linux system
Win10 changes the high score screen high DPI font or two solutions to blur
WP10/Win10 appeared, Microsoft partners got early versions
How to change the user access to the shared folder
How to install win10.net framework 3.5?
Open the Win7 system device manager method
WinXP system quick launch bar icon is missing how to recover?