侧边栏壁纸
博主头像
落叶人生博主等级

走进秋风,寻找秋天的落叶

  • 累计撰写 130562 篇文章
  • 累计创建 28 个标签
  • 累计收到 9 条评论
标签搜索

目 录CONTENT

文章目录

CentOS7 更新与yum库

2023-12-11 星期一 / 0 评论 / 0 点赞 / 115 阅读 / 1955 字

输入"cat /etc/issue",显示的是发行版本信息,显示是centos或其他。 一、更新系统并安装必备的组件: yum upgrade or yum update yum install wg

输入"cat /etc/issue", 显示的是发行版本信息,显示是centos或其他。

一、更新系统并安装必备的组件:
yum upgrade or yum update
yum install wget telnet perl perl-devel net-tools kernel-devel 
yum groupinstall "Development tools" -y

更新内核与安装开发工具:

[root@localhost ~] yum -y install gcc gcc+ gcc-c++

[root@localhost ~] yum install popt-devel openssl openssl-devel libssl-dev libnl-devel popt-devel libnl3-devel net-snmp-devel curl

[root@localhost ~] yum -y install kernel kernel-devel

二、添加源(repository)REMI & EPEL:
yum安装时,要想安装比较新的版本软件,可以试试这两个源。都有一些国内镜像,我添加的EPEL是阿里云镜像的。

这是适合CentOS 6的源

cd /tmp && wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm && wget http://mirrors.yun-idc.com/epel/6/x86_64/epel-release-6-8.noarch.rpm && rpm -Uvh remi-release-6.rpm epel-release-6-8.noarch.rpm
真正适合CentOS 7的epel和remi源:
rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm(已失效)

rpm -Uvh http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

也可参考,安装国内源:https://www.cnblogs.com/renpingsheng/p/7845096.html


三、yum安装桌面

yum group list
# yum groupinstall "GNOME Desktop" "Graphical Administration Tools"

 

停掉seLiunx,selinux主要是用来管理linux命令权限的
# vi /etc/selinux/config
SELINUX=disabled
保存执行
# setenforce 0   
setenforce 1 设置SELinux 成为enforcing模式
setenforce 0 设置SELinux 成为permissive模式

广告 广告

评论区