Our CentOS-7.0 after the core installation, very happy, but not wait for the strength of the past to find the problem, how can not use yum? How can I not use ifconfig? What about pvcreate ?...... After that, you may start to scold me for being confused. Why can't so many basic commands be used? How can this problem be solved by the core installation written by this person.
I am wrong. Don't worry. The following text will help you solve this problem.
When we install files according to the/root/anaconda-ks.cfg this answer file (answer files do not understand their own Baidu) installed, cat view it
[[Email protected] ~] # Cat/root/anaconda-ks.cfg # version = rhel7 # System Authorization informationauth -- enableshadow -- passalgo = sha512 # Use CDROM installation mediacdrom # Run the setup agent on first bootfirstboot -- enableignoredisk -- only-use = SDA # keyboard layoutskeyboard -- vckeymap = us -- xlayouts = 'us' # System Monitoring agelang en_US.UTF-8 # network informationnetwork -- bootproto = DHCP -- device = eno16777736 -- onboot = off -- IPv6 = autonetwork -- hostname = localhost. localdomain # Root passwordrootpw -- iscrypted $6 $ ujxxvq3lcfrecy/T $ assets/dnvely4luugb8kkej3gnkwses7 .. # system timezonetimezone America/new_york -- isutc # system bootloader configurationbootloader -- location = MBR -- boot-drive = SDA # partition clearing informationclearpart -- none -- initlabel # disk partitioning informationpart/-- fstype = "XFS "-- ondisk = SDA -- size = 17407 part swap -- fstype =" Swap "-- ondisk = SDA -- size = 1024 part/data -- fstype =" XFS "-- ondisk = SDA -- size = 2048% packages @ core # system core % end
We found that core has no base installed in the system by default. The basic commands we need are packaged in the base. Now that the problem is found, we will start to install the base.
Enter the following command on the bash Interface
[[Email protected] yum. repos. d] # vi CentOS-dvd.repo [centos-DVD] Name = centosbaseurl = file: // MNT/Disk/enabled = 1 gpgcheck = 0: X [[email protected] yum. repos. d] # lsCentOS-Base.repo.bak CentOS-dvd.repo CentOS-Vault.repo.bakCentOS-Debuginfo.repo.bak CentOS-Sources.repo.bak # To facilitate our Yum. repos. d to repo files are changed to the Bak suffix, after the new add CentOS-dvd.repo files and set the relevant path of the other four files can be Baidu
After modification, enter the following command.
# Yum groupinstall base # The following will show 172 packages to be installed. Just run y.
Show complete!
Yum, ifconfig, pvcreate, and other commands can be used normally.
This article is from the "Zhang Fan-it's fantasy drifting" blog, please be sure to keep this source http://chawan.blog.51cto.com/9179874/1543645
Core installation and configuration of CentOS-7.0