Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
Others => Miscellaneous => Topic started by: hannanduet on May 05, 2009, 11:55:39 AM
-
i am a new comer in linux environment.I want to know how can mount dvd rom/cdrom in RHEL 5?Then want to know how to install yum?
-
Installing YUM is easy but considering you are newbie, may sound little complicated.. just follow the steps:
First we need to download yum and install.
Do as :
wget http://yum.baseurl.org/download/3.2/yum-3.2.22.tar.gz
tar -xvzf yum-3.2.22.tar.gz
cd yum-3.2.22
./configure
make
make install
Execute above one by one .
Now need to configure it :
For that open /etc/yum.conf and do the changes as described below.
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
[base]
name=CentOS-$releasever - Base
baseurl=http://mirror.centos.org/centos/5/os/i386/
gpgcheck=1
[updates]
name=Red Hat Linux $releasever - Updates
baseurl=http://mirror.centos.org/centos/5/updates/i386/
gpgcheck=1
Now we need to have GPG keys (kind of security check for RPM downloads)
rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
Now try to run YUM and should work !
-
Btw, for cd mount..
mount /dev/cdrom
Above should work as your /etc/fstab must already have required entry for your cd drive.
-
Hi,
How to mount cdrom:
>mount /media/cdrom
or
Syntax:mount <device> <mount point>
>mount /dev/cdrom /root/xyz
or
1.Check where /media is present whether SATA or PATA,If SATA
If Hard disk is sda,sdb etc then
>ls /dev/sd*
/dev/sda /dev/sda1
else
>ls /dev/hd*
/dev/hdc
2.Lets assume it is /dev/hdc
If cdrom dir is not present then
>mkdir /media/cdrom
>mount /dev/hdc /media/cdrom
>cd /media/cdrom
>ls
You will be able to view all packages.Make a directory in any location and copy all packages there.
Yum Install
>cd /etc/yum.repos.d
>vim server.repo
(please type the following lines in this file)
[MyRepository]
name=repository
baseurl=http://server1.ex.com/pub/Server (please mention the path on the server where packages are kept)
enabled=1
gpgcheck=0
:wq(save file)
>yum clean all
>cd ~
>yum install <package name>
The above procedure should work
With Regards