Tag: Profile Network File
1. Configure the local Yum source
mount/iso/Mirror Name/mnt
Vim/etc/yum.repos.d/yum.repo (yum source configuration file)
[Yumsource]
Name=yumsource
Baseurl=file:///mnt
Gpgcheck=0
2. Configure the network Yum source
echo "/iso/Mirror name Mirror mount point iso9660 ro 0 0" >>/etc/fstab (Boot auto mount) "Be careful not to overwrite/etc/fstab files"
Execute mount-a after modifying fstab
Vim/etc/yum.repos.d/yum/repo
[Yumsource]
Name=yumsource
Baseurl=file:///mnt
Gpgcheck=0
3. Establishment of third-party software repositories
Move third-party software to/software
Executing createrepo/software in the directory
Generate Repodate Directory
Writing a yum source configuration file
4.yum Software Control
Vim/etc/yum.conf
Exclude=*.x86_64 (ignoring 64-bit installation package)
exclude=*.i686 (ignoring 32-bit installation package)
5.yum List all lists all the installation packages
Yum Remove Uninstall
Yum Search Search
Yum Whatprovides search for packages containing a file
Yum Info query Software information
Related configuration of the "Basic section" of Yum