RH253读书笔记(10)-Appendix A Installing Software

本文提供了几种安装所需软件包的方法,包括使用yum、NFS、FTP和HTTP等不同途径,并详细说明了每种方法的具体步骤及注意事项。

Appendix A Installing Software

Below are a few methods to locate and install required packages. You may use any one of theses methods as necessary.

Always verify that intended installations were successful, especially when using the wildcard character!

Using yum

1. Ensure the file /etc/yum.repos.d/server1.repo exists on your system. If does not, download the file from server1:

[root@stationX]# cd /etc/yum.repos.d/
[root@stationX]# wget http://server1/pub/gls/server1.repo

It should contain the following content:

[Server]
name=Server
enable=1
gpgcheck=1
baseurl=http://192.168.0.254/pub/Server

2. After writing the file to disk, and returned to your prompt, enter the following command. You should see output similar to that listed below.

# yum list redhat-release
This system is not registered with RHN.
RHN support will be disabled.
Setting up repositories
Server 100% |=========================| 0000 kB 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 0000 kB 00:00
######################################################### 0000/0000
Installed packages
redhat-release.i386 5.##Server-# installed

3. If your results are similar, you must now install the public GPG keys(note the asterisk):

# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat*

4. You may now use the command listed below to install software:

# yum -y install packagename

Using NFS (may use the "*" wildcard in RPM name)

1. You may use the following commands to access and install software via NFS.

2. # mkdir /mnt/server1

3. # mount -t nfs -o ro server1:/var/ftp/pub/ /mnt/server1

4. # rpm -Uvh /mnt/server1/Server/packagename

Using FTP (may use the "*" wildcard in RPM name)

1. You may use the following command to access and install software via FTP.

2. # rpm -Uvh ftp://server1/pub/Server/packagename

Using HTTP (may NOT use the "*" wildcard in RPM name)

1. You may use the following command to access and install software via HTTP.

2. # rpm -Uvh http://server1/pub/Server/packagename

转载于:https://www.cnblogs.com/thlzhf/p/3478043.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值