Build a Local cd yum source using CentOS
The two hosts are the first to build the YUM and YUM servers, and the second is used for subsequent YUM tests.
Operating System: Centos6.5
Host Name: yum. server
IP Address: 172.20.1.11
Operating System: Centos6.5
Host Name: test1
IP Address: 172.20.1.10
1. Build a Local
This is the second part of the series of tutorials that we use Gitlab and rancher to build CI/CD pipelining. The first part describes how to deploy, configure, and ensure that Gitlab runs in rancher. In this section, we will describe how to build the container using the Gitlab CI Multi-runner, and how to configure the project using the Gitlab container registry.
Build a Local CD yum source using CentOSGuideWhen we use the Yum tool to install the software package, we will feel very simple, it solves the dependency of a certain degree of software package. However, the Yum tool provides an online installation method by default. it searches for software packages from the default online address and then automatically completes a series of processes. However, if we do no
=\*--enablerepo=c7-media [command] [C7-media] name=centos-$releaseve R-media baseurl=file:///media/centos/file:///media/cdrom/#本地yum源所在路径 file:///media/cdrecorder/gpgcheck=0 #这里为0不进行检查 enabled=1 #这里为1 start gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-7 ~
Save exit
3. Verify
We can view the warehouse using the Yum command plus the list parameter.
[Root@localhost/]# yum list #后面东西太多了 ...
The above is a small set to introduce Linux through the mounting system
Today, when I got a test environment, I lost some packages. when I installed the rpm package, the dependency was very troublesome. so I thought of using a CD to build a local yum server. Here are the specific setup steps. using yum can help solve the dependency problem. I have also organized an article, this is the form of ftp: Linux to build a YUM server http://
Multicd is a very practical shell script that allows you to build a multi-boot CD image. If you have multiple small Linux distributions at hand, you don't have to burn a CD for them separately. You can combine them into one by using multicd. Multicd will be a good assistant for Linux tool disks. Multicd currently supports many Linux releases, including slax, pu
Today, when I got a test environment, I lost some packages. When I installed the RPM package, the dependency was very troublesome. So I thought of using a CD to build a local Yum server. Here are the specific setup steps. Using Yum can help solve the dependency problem.
I have also compiled an article, which uses the FTP format:
Build a yum server in Linux
Http:
Today, when I got a test environment, I lost some packages. when I installed the rpm package, the dependency was very troublesome. so I thought of using a CD to build a local yum server.
Today, when I got a test environment, I lost some packages. when I installed the rpm package, the dependency was very troublesome. so I thought of using a CD to
CentOS uses a CD to build a local yum Server
Today, when I got a test environment, I lost some packages. When I installed the rpm package, the dependency was very troublesome. So I thought of using a CD to build a local yum server. Here are the specific setup steps. Using yum can help solve the dependency problem.
I h
The experiments are CentOS6.9 and CentOs7.3 systems 1. Mounting System Discs
There are two ways to mount a disc, one is to use the Magic directory of/MISC/CD, and the other is the mount method that we usually use.
1.1 Mount Mode Mount
[Root@centos7 ~]# mkdir/mnt/cdrom #创建挂载目录
1.2/misc This magical directory/misc this magical directory in CentOS6.9 is self-contained Centos7.3 need to install autofs this service
I have installe
1. Mount the discMount/dev/cdrom/mntView the MNT directory, the main source files in the Packages folder, in fact, directly to the CD-ROM packages copy to the Linux system directory is also possible2. Modify the configuration fileStep one: Back up the configuration fileCp-r Yum.repos.d/yum.repos.d.bakStep Two: Delete the configuration file Centos-base.repoRM-RF Centos-base.repoPart III: Modification of Centos-media.repo[Local-cdrom] Module nameName=cd
To avoid writing an operating system from the beginning, we certainly adopt a ready-made operating system as the bottom line. Of course, we can use LFS to make us feel better, but it is rare for people who can implement LFS. What's more, LFS is simply challenging my patience. Like LFS, we need a creation base. First, create a variable. The benefit of creating this variable is obvious, even if you don't need it ~ /Diy_Ubuntu directory, you can follow this article to continue.
To avoid writing an
Slax Linux is the main character of this article, because it does not need to be installed on the hard disk, it only needs to be burned on the disc and USB flash disk to run.The ISO file of slax Linux is only about MB in size. However, although the size of the ISO file is small, it has been installed with notepad and several games.
First, we will introduce how to install slax Linux. In fact, the process is super simple:
1. search for slax Linux in thunder and download a file named slax chineseop
Introduction of experimental environment
Create a new two virtual machine using VMware Workstation, install CentOS release 6.4 (Final) x86_64
The iptables and SELinux of both hosts have been closed.
CentOS1 plan to install Yum Data Warehouse IP as 192.168.80.3
CentOS2 plan acts as a client IP for 192.168.80.4
Build local yum server via CD-ROM
This experiment program through VSFTP to act as Yum Data Wa
First, the preparatory workSecond, the Environment configurationThird, submit the update and automatically deploy to the server, test address: http://182.61.57.121:8000
First, the preparatory work
Gitlab Environment (for convenience, use of the official custodian warehouse)
Installed docker and gitlab-runner Environment Cloud server (used here CentOS 7 64位 )
Project code, here I use Golang as the development language, other development language is the same operation process
Question: If there is no network, how to use the Yum source.
Answer: Use CD to build Yum source
Build steps:
1. Mount CD
Mkdir/mnt/cdrom #建议挂载点mount/dev/cdrom/mnt/cdrom/#挂载光盘
2, the network Yum source failure
Cd/etc/yum.repos.d/#进入yum源目录MV Centos-base.repo Centos-base.repo.
Dell Systems Build and Update Utility
The Dell system build and update utility is a bootable utility for single server operating system installations, preloaded operating system firmware updates, and preloaded operating system configuration.
Patches and enhancements
Enhancements: Added support for the following operating systems:-VMware ESX 4.0 u3-vmware ESX 4.1 u1-vmware ESXi 4.1 u1-vmware ESXi 4.0Xen S
When sudo apt-Get install build-essential is installed, the following message is displayed:
Media change: Please insert the disc labeled'Ubuntu 8.04.2 _ hard heron _-release i386 (20090121 )'In the drive '/CDROM/' and press ENTER
You can install the following solution:
You need to edit your sources file.Of course you shoshould always make a backup first.
Code:
Sudo CP/etc/APT/sources. List sources. List. Bak
At the top you will see a line that
Read-only disc memory CD-ROM is the normal CD that we often use. CD-ROM discs can be used to cross storage of large volumes of text, sound, graphics and images and other media digital information for quick retrieval, so the CD-ROM drive has become a standard configuration of multimedia computers.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.