The establishment and sharing of yum source software warehouse


 software management

yum

       install software name ##install

       repolist lists the configuration yum source information

       remove software name uninstall

       list Software name Check whether this software exists in the software source

       list all list all software names

       list installd List installed software names

       list available lists the software names that can be installed with yum

       clean all clears the yum cache

       search software name Search software name based on software information

       whatprovides filename finds packages in yum sources that contain filename

       update update software

       history View system software change history

       reinstall software name reinstall

       info software name View software information

       groups list View software group information

       groups info Software name View the software included in the software group

       groups install software name installation component

 

 

 

1. Copy an image file that matches the system to the system

hostnamectl to view the local system


2.mkdir /iso

mv /home/kiosk/Desktop/*.iso   /iso

Move the image to /iso


mkdir /source7.0 

 

mount /iso/rhel-server-7.0-x86_64-dvd.iso /source7.0

Move the image to /source7.0


 

cd /etc/yum.repos.d/

mkdir /repobackup

mv * / repobackup

 

vim yum.repo


 

 

 

yum clean all clears the cache, showing that the mount is successful


 

 

 

[root@foundation36 yum.repos.d]# yum clean all clear cache

Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-

              : manager

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

Cleaning repos: source7.0 shows mount 7.0

Cleaning up everything

 

 

 

 

 

 

 

 

 

 

shared yum source

1 Install apache after the local yum source configuration is complete

yum install httpd install httpd service


systemctl start httpd to open the service

systemctl enable httpd set to boot automatically

systemctl stop firewalld turn off the firewall

systemctl disable firewalld Set the firewall to not start automatically


mkdir /var/www/html/source7.0 

 

 

 

2 Mount the image

mount /iso/rhel-server-7.0-x86_64-dvd.iso /var/www/html/source7.0


 

 

vim /etc/rc.d/rc.local

mount /iso/rhel-server-7.0-x86_64-dvd.iso /var/www/html/source7.0


 

 


chmod +x /etc/rc.d/rc.local to give file permissions

 

 

 

 

3. Access Test

Enter the address in the browser

http://ip/source7.0

http://172.25.254.63/source7.0


 share results

 

4. Configure the virtual machine yum

rm -rf /etc/yum.repos.d/*


vim /etc/yum.repos.d/yum.repo

 

[source7.0]

name=source7.0

baseurl=http://172.25.254.xx/source7.0

gpgcheck=0

 

 

Browser    172.25.254.36/source7.0 with virtual machine

 

 

 So far, the yum source is successfully shared to the virtual machine

 

 

 

 


Ca n't connect to vnc solution

Toggle superuser

cd /etc/sysconfig/network-scripts/

ls view

Remove ifcfg beginning except lo

work-hostset 36 36 represents the host number


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326073885&siteId=291194637