The rpm software package form Management software needs to solve the dependency of the software package manually. in many cases, to install a software, you need to install one or more other software first, YUM can solve this problem. YUM has the following features: automatic dependency resolution is acceptable.
The rpm software package form Management software needs to solve the dependency of the software package manually. in many cases, to install a software, you need to install one or more other software first, YUM can solve this problem. YUM has the following features: you can automatically group RPM for dependency resolution, and introduce the concept of warehouse for group-based installation. it supports simple configuration of multiple warehouse. YUM introduces the concept of warehouse, the repository is used to store all rpm software packages. When an rpm software is installed using yum, if dependency exists, the repository will automatically find and install the dependent software. the repository can be local, centralized and unified network warehouses can also be used through HTTP, FTP, or NFS. The repository configuration file is saved in the/etc/yum. repos. d/Directory. The yum configuration file must end with. repo. Configuration information of multiple repositories can be saved in one configuration file. Multiple configuration files can exist in the/etc/yum. repos. d/directory.
Common Command for YUM management software: yum install software-name install specified software yum remove software-name uninstall specified software yum update software-name upgrade specified software
Use the following command to query: yum search keyword search yum list (all | installed | recent | updates) listing all, installed, recent, software updates yum info packageName displays information about the specified software yum whatprovides fileName queries which rpm software contains the target file
Create a YUM repository: 1. copy all RPM files to a folder. run the rpm command to manually install the createrepo software. 3. run createrepo-v/rpm-directory 4. if the group information exists, use the-g parameter to specify the group file createrepo-g/tmp/* comps when running the command. xml/rpm-directory
YUM caches a lot of information to improve the speed, but sometimes the cache may cause some faults. you can run the following command to clear the cache: yum clean all, the yum cache is rebuilt every time you run the installation or query command.
The format of the YUM configuration file is as follows: [LinuxCast] name = This is LinuxCast.net demo basrurl = http://www.linuxcast.net/yum/centos/6/i386/ enable = 1 gpgcheck = 1
Note: All configuration files must end with. repo.