如何使用yum命令安装samba rpm
应用环境:PC虚拟机redhat Linux(2.6.18-53.el5)
[root@localhost yum.repos.d]# rpm -qa|grep samba (安装前查询)
samba-common-3.0.25b-0.el5.4
[root@localhost yum.repos.d]# yum install samba
Loading "rhnplugin" plugin
Loading "security" plugin
Loading "installonlyn" plugin
This system is not registered with RHN. (需要注册RHN么?)
RHN support will be disabled.
Setting up Install Process
Setting up repositories
rhel-debuginfo 100% |=========================| 2.6 kB 00:00
Reading repository metadata in from local files
5b80baa2702f8a5421035fad0 3% | | 24 kB 00:13 E5b80baa2702f8a5421035fad0 11% |== | 72 kB 00:10 E5b80baa2702f8a5421035fad0 19% |==== | 128 kB 00:08 E5b80baa2702f8a5421035fad0 39% |========= | 256 kB 00:04 E5b80baa2702f8a5421035fad0 64% |================ | 416 kB 00:02 E5b80baa2702f8a5421035fad0 97% |======================== | 632 kB 00:00 E5b80baa2702f8a5421035fad0 100% |=========================| 648 kB 00:02
################################################## 5052/5052
Parsing package install arguments
No Match for argument: samba (这地方如何解决,什么问题?)
Nothing to do
[root@localhost yum.repos.d]# rpm -qa|grep samba (安装后查询,没有变化)
samba-common-3.0.25b-0.el5.4
关于yum的配置文件如下:
[root@localhost yum.repos.d]# pwd
/etc/yum.repos.d
[root@localhost yum.repos.d]# vi rhel-debuginfo.repo
[rhel-debuginfo]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/$basearch/Debuginfo/ (我想从网络上下载,这个URL地址应该为多少?)
#baseurl=file://media/cdrom (我想从本地加载,这个地址应该为多少?)
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
(以上配置是否正确)
[root@localhost etc]# vi yum.conf
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
metadata_expire=1800
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d