手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

RedHat Enterprise Linux 5.2安装yum服务器

[日期:2010-08-02] 来源:Linux社区  作者:wonitazansa1 [字体:大 中 小]

Command ‘Ntsysv’ config httpd to auto

Client:

[root@localhost yum.repos.d]# mkdir -p  /etc/yum.repos.d/backup
[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!

linux
相关资讯       redhat 
本文评论   查看全部评论 (1)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款
第 1 楼
* 邹安安 发表于 2010/9/10 0:48:00
谢谢你 ,看了你的我才终于把学LINUX中遇到最难的一关给过了。。。。 让我有了新 的信心学习下去