LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Can I install packages from the Red Hat DVD? (https://www.linuxquestions.org/questions/red-hat-31/can-i-install-packages-from-the-red-hat-dvd-775665/)

katerine 12-14-2009 07:05 PM

Can I install packages from the Red Hat DVD?
 
Good evening

I would like to know how I can install a package from the Red Hat Enterprise DVD.

Is there any similar tool to the "apt" that is use in Debian that can be use in Red Hat?

I have heard about "YUM", but base on what I read on Internet I would have to write the Red Hat license kit in Red Hat Network in order to use the command and unfortunately I don't have that information right now so I guess I can't use that command.

Can I install packages from the Red Hat DVD using the Graphic user interface? Meaning, there is something similar to YAST that is use for SUSE or Synaptic for Debian where I can select the package that I want from the DVD?

Thanks

ongte 12-15-2009 12:56 AM

The best way to do this is to copy the DVD contents into the hard drive & then create a local yum repository from that directory. Copy contents the Server directory on the DVD into the /repo/Server directory. This can be done using either cp or simply drag & drop in Nautilus.

Code:

# cp –r /media/RHEL-5-i386-DVD/Server/* /repo/Server
Install the yum repository builder.
Code:

# cd /repo/Server
# rpm –ivh createrepo-*.rpm

Create the repository.
Code:

# cd /repo
# createrepo -g repodata/comps-rhel5-server-core.xml Server
# cp /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release Server

Setup web server to host the repository
Make sure you've installed the web server during installation, then proceed with these.
Code:

# cd /var/www/html
# ln –s /repo/Server server
# chkconfig httpd on
# service httpd start

Open the browser & browse to http://localhost/server to check that the web server is running (you should see the rpm files listed)

Now to setup yum to point to the new web repository
Code:

# cd /etc/yum.repos.d
# cp rhel-debuginfo.repo testserver.repo
# vi testserver.repo

Modify the file to look like this:
Code:

[testserver]
name=Red Hat Enterprise Linux Test Server
baseurl=http://localhost/server/
enabled=1
gpgcheck=1
gpgkey=http://localhost/server/RPM-GPG-KEY-redhat-release

Save the file. :wq
Code:

# yum update
You should now be able to access the DVD contents from the Add/Remove (launch it with # pirut)

lazlow 12-15-2009 12:13 PM

It is usually just easier to use Centos. Centos is RHEL with the logos removed. It is built from RHEL source rpms (sans proprietary bits, mostly logos) and is free to download/update.

chrism01 12-15-2009 06:54 PM

The GUI Add/Remove SW should have an option to edit the repos list, and by default the DVD should be in there, but probably inactive. Just tick to activate.

As above, you should keep your system up to date, so either get a RHEL subscription, or go Centos.

John VV 12-15-2009 09:59 PM

the real question is WHY you want to install software off the outdated install cd ???
all ( or most) of it is outdated and once installed WILL REQUIRE updating.

just pay Red Hat for the updates and access to THERE repo and install using yum .

chrism01 12-15-2009 10:11 PM

Maybe he needs something in a hurry... getting a RHEL acct (or switching to Centos) could take some time, especially if he's part of a large org.


All times are GMT -5. The time now is 10:17 PM.