Day 39th: Replace the Yum source and uninstall the graphical interface

Source: Internet
Author: User
Tags gpg

Small Q: Wen so know the new, can for the teacher, see a lot today, look back a few times.


========================== Rapid replacement of domestic yum source ===========================

1. Remove all repo files from the/ETC/YUM.REPOS.D directory


2. Download Centos-base-163.repo, put/etc/yum.repos.d/

wget Http://mirrors.163.com/.help/CentOS-Base-163.repo-O/etc/yum.repos.d/centos-base-163.repo

Description, if the 163 mirror fails, you can try to replace the image of Sohu Http://mirrors.sohu.com/help/CentOS-Base-sohu.repo


3. rm-rf/var/cache/yum/* run Yum Makecache generate cache


4.yum Search Softwarename Find software


5.yum list Softwarename list installed software


6.yum Install Softwarename installation software


7.yun Remove Softwarename Uninstall software

--------------------------------------------------------------------------------------

Centos-base-163.repo source files are as follows:

# Centos-base.repo

#

# The Mirror system uses the connecting IP address of the client and the

# Update status of each mirror to pick mirrors that is updated to and

# Geographically close to the client. You should the use of this for CentOS updates

# Unless you is manually picking other mirrors.

#

# If The mirrorlist= does not work for you, as a fall back to you can try the

# remarked out Baseurl= line instead.

#

#


[Base]

name=centos-$releasever-base-163.com

mirrorlist=http://mirrorlist.centos.org/?release= $releasever &arch= $basearch &repo=os

baseurl=http://mirrors.163.com/centos/$releasever/os/$basearch/

Gpgcheck=1

Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-5


#released Updates

[Updates]

name=centos-$releasever-updates-163.com

mirrorlist=http://mirrorlist.centos.org/?release= $releasever &arch= $basearch &repo=updates

baseurl=http://mirrors.163.com/centos/$releasever/updates/$basearch/

Gpgcheck=1

Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-5


#packages used/produced in the build and not released

[Addons]

name=centos-$releasever-addons-163.com

mirrorlist=http://mirrorlist.centos.org/?release= $releasever &arch= $basearch &repo=addons

baseurl=http://mirrors.163.com/centos/$releasever/addons/$basearch/

Gpgcheck=1

Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-5


#additional packages that could be useful

[Extras]

name=centos-$releasever-extras-163.com

mirrorlist=http://mirrorlist.centos.org/?release= $releasever &arch= $basearch &repo=extras

baseurl=http://mirrors.163.com/centos/$releasever/extras/$basearch/

Gpgcheck=1

Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-5


#additional packages that extend functionality of existing packages

[Centosplus]

name=centos-$releasever-plus-163.com

mirrorlist=http://mirrorlist.centos.org/?release= $releasever &arch= $basearch &repo=centosplus

baseurl=http://mirrors.163.com/centos/$releasever/centosplus/$basearch/

Gpgcheck=1

Enabled=0

Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-5


#contrib-packages by Centos Users

[Contrib]

name=centos-$releasever-contrib-163.com

mirrorlist=http://mirrorlist.centos.org/?release= $releasever &arch= $basearch &repo=contrib

baseurl=http://mirrors.163.com/centos/$releasever/contrib/$basearch/

Gpgcheck=1

Enabled=0

Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-5



==================== loading and unloading graphical interface ====================

Command-line mode installation graphical interface

Yum grouplist Check for installed groups

Yum groupinstall "X window System"

Yum groupinstall "GNOME Desktop Environment"

StartX

or init 5.

Just OK.

If you set the Chinese mode, you need to lang=en



Re-installed the CentOS system with graphical interface mode to experiment with Yum mode to unload the graphical interface

The graphical interface wants to uninstall:

Yum groupremove "GNOME Desktop Environment"

Yum groupremove "X window System"


Linux uninstall GUI with graphical interface prompts for errors

Init:id "x" respawning too fast:disabled for 5 minutes

The solution is

Vi/etc/inittab

Find this text change the number after the ID in this text to 3 Id:3:initdefault let the system start with the text interface

Find this piece of text X:5:respawn:/etc/x11/prefdm-nodaemon comment out!






Day 39th: Replace the Yum source and uninstall the graphical interface

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.