Installation of Packages through RPM or YUM
If you want to install from CD or DVD go to packages location generally
in /media/CDROM/Server
To install from NFS server where NFS server's IP is 192.168.0.250 and
share folder is /var/ftp/pub/Server mount the share at client side .
[root@client mnt]# mount 192.168.0.250:/var/ftp/pub/Server /mnt
[root@client mnt]# mount
[root@client mnt]# cd /mnt
[root@client mnt]# ls
To install packages
[root@client mnt]# rpm -i samba* vsftpd*
[root@client mnt]# rpm -iv samba* vsftpd*
[root@client mnt]# rpm -iv samba* vsftpd* --force
[root@client mnt]# rpm -ivh samba* vsftpd* --force
To remove the packages
[root@client mnt]# rpm -e vsftpd
[root@client mnt]# rpm -e vsftpd
[root@client mnt]# rpm -e samba --nodeps
To query the packages
[root@client mnt]# rpm -qa
[root@client mnt]# rpm -qa | sort | less [root@client mnt]# rpm -q samba
[root@client mnt]# rpm -qa samba*
[root@client mnt]#
[root@client mnt]# rpm -qi samba
[root@client mnt]# rpm -ql samba
[root@client mnt]# rpm -qd samba
[root@client mnt]# rpm -qc samba
[root@client mnt]# rpm -qs samba
Installing through yum
Creating a repository at server side where all rpms are copied
[root@client ~]# cd /var/ftp/pub/Server
[root@client Server]# rpm -ivh createrepo-0.4.4-2.fc6.noarch.rpm --
force
Remove the old repodata
[root@client Server]# rm -rf repodata/
Create a new repodata
[root@client Server]# createrepo -g /media/cdrom/Server/repodata/comps-
rhel5-server-core.xml
[root@client Server]# cd
[root@client ~]#
At client side edit the yum configuration file, provide the path of repository
[root@client ~]# vi /etc/yum.repos.d/rhel-debuginfo.repo
[core]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug baseurl=ftp://192.168.0.250/pub/Server
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rp
:wq!
Installing through yum
[root@client ~]# yum list
[root@client ~]# yum list installed
[root@client ~]# yum list installed samba* [root@client ~]# yum install vsftpd* samba* [root@client ~]# yum remove vsftpd* samba* [root@client ~]# yum grouplist
[root@client ~]# yum groupinstall "Mail Server"
[root@client ~]# yum groupremove "Mail Server"
[root@client ~]# cd /media/cdrom/Server
No comments:
Post a Comment