November 22, 2024, 11:47:27 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: cdrom mount and how to install yum install  (Read 10589 times)

Offline hannanduet

  • New Member
  • Posts: 1
cdrom mount and how to install yum install
« 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?

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Re: cdrom mount and how to install yum install
« Reply #1 on: May 07, 2009, 05:32:08 PM »
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 :
Code: [Select]
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.
Code: [Select]

[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)
Code: [Select]
rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
Now try to run YUM and should work !

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Re: cdrom mount and how to install yum install
« Reply #2 on: May 07, 2009, 05:34:35 PM »
Btw, for cd mount..
Code: [Select]
mount /dev/cdrom
Above should work as your /etc/fstab must already have required entry for your cd drive.

Offline Puja

  • Linux Noob !
  • *
  • Posts: 9
Re: cdrom mount and how to install yum install
« Reply #3 on: May 28, 2009, 10:14:26 PM »
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
« Last Edit: May 28, 2009, 10:19:55 PM by Puja »