Centos 6和7上百胜仓库的创建和应用,第4周

Centos 6和7上yum的配置和应用


Centos 6和7上yum仓库的创建和应用-第4周


Centos 6和7上yum仓库的创建和应用-第4周


Centos 6和7上yum仓库的创建和应用-第4周

但发现Centos 7上默认已启用了3个仓库,看下图:


Centos 6和7上yum仓库的创建和应用-第4周


Centos 6和7上yum仓库的创建和应用-第4周

Centos 6和7上yum仓库的创建和应用-第4周

Centos 6和7上yum仓库的创建和应用-第4周

发现是配置文件里写错了,应该是 baseurl=file:///media/cdrom/,然后新yum源可以用了

Centos 6和7上yum仓库的创建和应用-第4周

Centos 6和7上yum仓库的创建和应用-第4周


6- 安装tree, ftp, lftp,telnet等包

先通过yum info tree命令来查仓库里是否有这个软件或打命令测试是否之前安装过

[root@Franklin13 ~]# ftp

bash: ftp: command not found...

[root@Franklin13 ~] # lftp

bash: lftp:命令没有找到…

[root@Franklin13 ~] #

bash树:树:命令没有找到…

 Centos 6和7上百胜仓库的创建和应用,第4周

 Centos 6和7上百胜仓库的创建和应用,第4周

<强>

<强>

[root@www yum.repos。d] # mv centos - 6.5。回购centos-6.5.repo。贝克

[root@www yum.repos。d] # vim tsinghua-edu。回购

[root@www yum.repos。d] #

[root@www yum.repos。d] #猫tsinghua-edu。回购

<强> [tsinghua-url]

<>强名称=Centos - 6.5

<强> baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/6/os/x86_64/

<强> gpgcheck=0

<强>=1启用

<强> # gpgkey=文件:///mnt/RPM-GPG-KEY-CentOS-6

<强>  Centos 6和7上百胜仓库的创建和应用,第4周

然后再百胜清洁,百胜makecache后就能用这个网络百胜源来安装软件了

 Centos 6和7上百胜仓库的创建和应用,第4周

<强>

<强>

<强>

<强>

[root@Franklin13 ~] # grep Ip/etc/passwd

[root@Franklin13 ~] #

[root@Franklin13 ~] # grep gdm/etc/passwd

gdm: x: 42:42::/var/lib/gdm:/sbin/nologin

[root@Franklin13 ~] # <强>

70 0 drwxr-xr-x 2 abrt abrt 6 2018年12月23日/var/tmp/abrt

9158721 0 drwx - - - - - - 2 rpc rpc 6 2017年8月4日/var/lib/rpcbind

1081397 0 drwxr-xr-x 4 colord colord 67 2018年12月23日/var/lib/colord

9158739 0 drwxr-xr-x 2 colord colord 6 2017年8月6日/var/lib/colord/icc

2434893 4 -rw-r - r - 1 colord colord 4096 2018年12月23日/var/lib/colord/mapping.db

[root@Franklin13 ~] #


- - - - - - - - - - - - - - - - - -全文完- - - - - -

- - - - - - - - - - -

Centos 6和7上百胜仓库的创建和应用,第4周