Prepare Yum Install.
===================
1. Mount the RHEL 5 ISO DVD on the server.
2. [root@standalone2 media]# mount /dev/cdrom /mnt
mount: block device /dev/cdrom is write-protected, mounting read-only
[root@standalone2 media]# cd /mnt
3. Install the FTP Server.
[root@standalone2 Server]# ls -lrt vsf*
-r--r--r-- 75 root root 143483 May 24 2011 vsftpd-2.0.5-21.el5.x86_64.rpm
[root@standalone2 Server]# rpm -ivh vsftpd-2.0.5-21.el5.x86_64.rpm
warning: vsftpd-2.0.5-21.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:vsftpd ########################################### [100%]
4. Copy the files under Server / images directory and RPM-GPG-KEY files to /var/ftp/pub directory.
[root@standalone2 Server]# cp -av /mnt/Server /var/ftp/pub/
[root@standalone2 Server]# cp -av /mnt/images /var/ftp/pub/
[root@standalone2 Server]# cp -av /mnt/RPM-GPG-KEY* /var/ftp/pub/
5. Install the create repository package.
[root@standalone2 ~]# cd /var/ftp/pub/Server/
[root@standalone2 Server]# rpm -ivh createrepo-0.4.11-3.el5.noarch.rpm
warning: createrepo-0.4.11-3.el5.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:createrepo ########################################### [100%]
6. Create a Repository for the /var/ftp/pub directory
[root@standalone2 Server]# createrepo -v /var/ftp/pub
[root@standalone2 Server]# createrepo -g /var/ftp/pub/Server/repodata/comps-rhel5-server-core.xml /var/ftp/pub/
[root@standalone2 Server]# yum clean all
Loaded plugins: rhnplugin, security
Cleaning up Everything
7. Create an Repository file with below contents.
[root@standalone2 Server]# vi /etc/yum.repos.d/Server.repo
[ser]
name=standalone2.manzoor.com
baseurl=file:///var/ftp/pub
enabled=1
gpgcheck=0
8. Check yum installer tool by uninsalling and reinstalling a package
[root@standalone2 Server]# yum remove telnet
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package telnet.x86_64 1:0.17-39.el5 set to be erased
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================
Removing:
telnet x86_64 1:0.17-39.el5 installed 105 k
Transaction Summary
=============================================================================================================================================================
Remove 1 Package(s)
Reinstall 0 Package(s)
Downgrade 0 Package(s)
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Erasing : telnet 1/1
Removed:
telnet.x86_64 1:0.17-39.el5
Complete!
[root@standalone2 Server]# yum install telnet
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Server | 1.1 kB 00:00
Server/primary | 1.1 MB 00:00
Server 3261/3261
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package telnet.x86_64 1:0.17-39.el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================
Installing:
telnet x86_64 1:0.17-39.el5 Server 60 k
Transaction Summary
=============================================================================================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)
Total download size: 60 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : telnet 1/1
Installed:
telnet.x86_64 1:0.17-39.el5
Complete!
[root@standalone2 Server]# yum update
======= yum configuration completed =========================
===================
1. Mount the RHEL 5 ISO DVD on the server.
2. [root@standalone2 media]# mount /dev/cdrom /mnt
mount: block device /dev/cdrom is write-protected, mounting read-only
[root@standalone2 media]# cd /mnt
3. Install the FTP Server.
[root@standalone2 Server]# ls -lrt vsf*
-r--r--r-- 75 root root 143483 May 24 2011 vsftpd-2.0.5-21.el5.x86_64.rpm
[root@standalone2 Server]# rpm -ivh vsftpd-2.0.5-21.el5.x86_64.rpm
warning: vsftpd-2.0.5-21.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:vsftpd ########################################### [100%]
4. Copy the files under Server / images directory and RPM-GPG-KEY files to /var/ftp/pub directory.
[root@standalone2 Server]# cp -av /mnt/Server /var/ftp/pub/
[root@standalone2 Server]# cp -av /mnt/images /var/ftp/pub/
[root@standalone2 Server]# cp -av /mnt/RPM-GPG-KEY* /var/ftp/pub/
5. Install the create repository package.
[root@standalone2 ~]# cd /var/ftp/pub/Server/
[root@standalone2 Server]# rpm -ivh createrepo-0.4.11-3.el5.noarch.rpm
warning: createrepo-0.4.11-3.el5.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:createrepo ########################################### [100%]
6. Create a Repository for the /var/ftp/pub directory
[root@standalone2 Server]# createrepo -v /var/ftp/pub
[root@standalone2 Server]# createrepo -g /var/ftp/pub/Server/repodata/comps-rhel5-server-core.xml /var/ftp/pub/
[root@standalone2 Server]# yum clean all
Loaded plugins: rhnplugin, security
Cleaning up Everything
7. Create an Repository file with below contents.
[root@standalone2 Server]# vi /etc/yum.repos.d/Server.repo
[ser]
name=standalone2.manzoor.com
baseurl=file:///var/ftp/pub
enabled=1
gpgcheck=0
8. Check yum installer tool by uninsalling and reinstalling a package
[root@standalone2 Server]# yum remove telnet
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package telnet.x86_64 1:0.17-39.el5 set to be erased
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================
Removing:
telnet x86_64 1:0.17-39.el5 installed 105 k
Transaction Summary
=============================================================================================================================================================
Remove 1 Package(s)
Reinstall 0 Package(s)
Downgrade 0 Package(s)
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Erasing : telnet 1/1
Removed:
telnet.x86_64 1:0.17-39.el5
Complete!
[root@standalone2 Server]# yum install telnet
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Server | 1.1 kB 00:00
Server/primary | 1.1 MB 00:00
Server 3261/3261
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package telnet.x86_64 1:0.17-39.el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================
Installing:
telnet x86_64 1:0.17-39.el5 Server 60 k
Transaction Summary
=============================================================================================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)
Total download size: 60 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : telnet 1/1
Installed:
telnet.x86_64 1:0.17-39.el5
Complete!
[root@standalone2 Server]# yum update
======= yum configuration completed =========================
No comments:
Post a Comment