Command ‘Ntsysv’ config httpd to auto
Client:
[root@localhost yum.repos.d]# mv *.repo backup
[root@localhost yum.repos.d]# cp backup/rhel-debuginfo.repo server.repo
[root@localhost yum.repos.d]# cat server.repo
[rhel-debuginfo]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=http://10.155.2.75/Server/
enabled=1
gpgcheck=1
gpgkey=http://10.155.2.75/Server/RPM-GPG-KEY-RedHat-release
Test
Command:
yum install dasher 安装dasher
yum -y install firefox 安装自动应答为yes
yum remove httpd 删除软件包
yum clean all 清空下载的软件包的缓存
yum list 列出所有的软件包(包括已安装和在YUM服务器上存在的)
yum upgrade 升级软件包
yum update 升级软件包
yum list installed 列出所有已经安装的软件包
yum list available 列出所有可用的软件包
yum list updates 列出所有可升级的软件包
[root@localhost yum.repos.d]# yum install dasher
Loading "security" plugin
Loading "rhnplugin" plugin
This system is not registered with RHN.
RHN support will be disabled.
rhel-debuginfo 100% |=========================| 951 B 00:00
primary.xml.gz 100% |=========================| 774 kB 00:00
rhel-debug: ################################################## 2223/2223
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package dasher.i386 0:4.2.0-2.el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
dasher i386 4.2.0-2.el5 rhel-debuginfo 6.0 M
Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 6.0 M
Is this ok [y/N]: y
Downloading Packages:
(1/1): dasher-4.2.0-2.el5 100% |=========================| 6.0 MB 00:05
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 37017186
Importing GPG key 0x37017186 "Red Hat, Inc. (release key) <security@redhat.com>" from
http://10.155.2.75/Server/RPM-GPG-KEY-redhat-release
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: dasher ######################### [1/1]
Installed: dasher.i386 0:4.2.0-2.el5
Complete!
