Experimental Purpose:
1. Configure the Software repository
2. Client Configuration Yum File
3. Querying packages
4. query files and commands by which package is generated
Experimental Steps and Results:
1. Configure the Software repository
#umount/dev/cdrom//prevention before a mount, first kill
#ls/mnt//See if there are still mounts in MNT
#mount/dev/cdrom/mnt
Mount the CDROM under the root of the dev "storage device-related location" to the MNT under the root
#ls/mnt//To see if the mount was successful
#mkdir-P/REPO/COS7DVD//create a continuous repo under the root under the Cos7dvd "-p for recursive creation"
#cp-rf/mnt/
/repo/cos7dvd//Will all files under the root of mnt "asterisk denotes all files" copied to repo under the root under Cos7dvd "-R for Directory Replication"
#du-sh/repo/cos7dvd//view Cos7dvd size under repo under root
2. Client Configuration Yum
#ls/etc/yum.repos.d///View the etc under the root "storage configuration-related location" YUM.REPOS.D content
#mkdir/etc/yum.repos.d/oldrepo//Create a root under etc under the YUM.REPOS.D under the Oldrepo
#mv/etc/yum.repos.d/. repo/etc/yum.repos.d/oldrepo///Move all files under YUM.REPOS.D Oldrepo
#ls/etc/yum.repos.d///See if the move was successful
#yum-config-manager--add file:///repo/cos7dvd///Configure client Yum
#ls/etc/yum.repos.d///See if "Identity file" appears
#vim/etc/yum.conf//through Vim to modify the root of etc under the yum.conf and change the line of 1 to 0
#yum clean all clear yum cache
#yum repolist Verify the warehouse name, path, number of packages
3. Querying packages
Basic usage
Format: Yum list [software name]. ..
Such as:
#yum List Firefox
Get description information for a package
Basic usage
Format: Yum info [software name]. ..
Such as:
#yum Info httpd
4. query files and commands by which package is generated
Basic usage
Format: Yum privides "/program or filename" ....
eg
#yum provides "/vim" | More "| For pipe, more for split screen display"
Thank you
21st issue of Linux configuration warehouse and software management "Yum"