ubuntu make local yum warehouse

ubuntu makes a local yum warehouse#

author:Zhang Shoufu
W X:y18163201(Please note)
qq group:895291458
time:2019-01-31 nights

When I went to a bank for software deployment today, I encountered the requirement that all computers are not allowed to connect to the Internet. Our servers cannot use our own hard disks in the past. We must use the hard disks provided by the bank. This means that I need to restart To install the server system, we need to redeploy our software environment. These are no problems, but the biggest problem is that I can't connect, can't connect, can't connect to the Internet. This means that all the software I need to install online must be locally carry out.
It seems that I have thought of centos using the CD as a yum warehouse, and I started to implement it when I thought of the method

ubuntu install software via CD##

> First, we need to prepare a USB flash drive in ntfs format or other formats recognized by ubuntu(If you don’t know, please mount-Complete t tab to check)>Then put(**.iso)Copy the files to the U disk(I am using a USB flash drive in ntfs format.)

Plug in the USB flash drive to the server,Switch to root identity
fdisk -l Check which USB flash drive was just now,Be sure to see the name of the partition,Here i am/dev/sdb1
mount -t ntfs /dev/sdb1 /mnt/
cp /mnt/*.iso /root
mkdir /medis/cdrom   (Consistent with my directory,If you are not obedient,Then you will know the problem in a while)
mount -tiso9660 -o loop /roo/*.iso /media/cdrom
apt-cdrom -m -d /media/cdrom add
apt-get update

At this point, you can install the most basic ssh service, you can use remote software to connect, you can finally stay away from this computer room, the follow-up method is writing, if you have time, you will write ubuntu server to install the system through uefi without pit Articles-There is no pit-free article on the Internet.

Recommended Posts

ubuntu make local yum warehouse
ubuntu install harbor warehouse
Ubuntu make offline source
Developer artifact Ubuntu Make 15.11.1 released
Build Yum private warehouse in Centos7.3