LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 08-22-2008, 06:35 AM   #16
Mr. ameya sathe
Member
 
Registered: Jul 2007
Distribution: RedHat Enterprise 5 Server Edition; Ubuntu 8.04 ; RHCE Certificate number: 805008741034103
Posts: 78

Original Poster
Blog Entries: 8

Rep: Reputation: Disabled
Post


Quote:
Originally Posted by billymayday View Post
ls "/media/RHEL_5 i386 DVD"
Listing of the contents of the directory.
Code:
Cluster         README-or.html         RELEASE-NOTES-ml.html
ClusterStorage  README-pa.html         RELEASE-NOTES-mr.html
EULA            README-pt_BR.html      RELEASE-NOTES-or.html
eula.en_US      README-ru.html         RELEASE-NOTES-pa.html
GPL             README-si.html         RELEASE-NOTES-pt_BR.html
images          README-ta.html         RELEASE-NOTES-ru.html
isolinux        README-te.html         RELEASE-NOTES-si.html
README-as.html  README-zh_CN.html      RELEASE-NOTES-ta.html
README-bn.html  README-zh_TW.html      RELEASE-NOTES-te.html
README-de.html  RELEASE-NOTES-as.html  RELEASE-NOTES-zh_CN.html
README-en       RELEASE-NOTES-bn.html  RELEASE-NOTES-zh_TW.html
README-en.html  RELEASE-NOTES-de.html  RPM-GPG-KEY-fedora
README-es.html  RELEASE-NOTES-en       RPM-GPG-KEY-fedora-test
README-fr.html  RELEASE-NOTES-en.html  RPM-GPG-KEY-redhat-auxiliary
README-gu.html  RELEASE-NOTES-es.html  RPM-GPG-KEY-redhat-beta
README-hi.html  RELEASE-NOTES-fr.html  RPM-GPG-KEY-redhat-former
README-it.html  RELEASE-NOTES-gu.html  RPM-GPG-KEY-redhat-release
README-ja.html  RELEASE-NOTES-hi.html  Server
README-kn.html  RELEASE-NOTES-it.html  TRANS.TBL
README-ko.html  RELEASE-NOTES-ja.html  VT
 
Old 08-22-2008, 11:46 AM   #17
Mr. ameya sathe
Member
 
Registered: Jul 2007
Distribution: RedHat Enterprise 5 Server Edition; Ubuntu 8.04 ; RHCE Certificate number: 805008741034103
Posts: 78

Original Poster
Blog Entries: 8

Rep: Reputation: Disabled
Lightbulb A Helper mailing item found

On the Yum Mailing List; I stumbled across the following thread. It is working for me; as this thread directs

[Yum] Readonly Repo - createrepo a folder up - works


I will now customise the steps for Server & Clients, using FTP &/NFS &/HTTP services.
 
Old 08-22-2008, 12:01 PM   #18
eboy98
Member
 
Registered: Oct 2007
Distribution: RHEL5
Posts: 64

Rep: Reputation: 15
may be by this time you had already solved..if not then try this way.....

what you need to do:


* place all rpm files from DVD to your desired directory

like now i have at /rpms/packages

* install createrepo*.RPM from DVD
* run the following command

#createrepo -v /rpms/packages


now the configuration of /etc/yum.repos.d
create a file with name any thing you want but the extension should be .repo:

i gave myyum.repo

=============myyum.repo==================
[local-installation]
name=yum-loacl
baseurl=file:///rpms/packages
enabled=1
gpgcheck=0

=========================================

thats all. now i think you can install any rpm files with yum command
 
Old 08-22-2008, 02:10 PM   #19
keratos
Member
 
Registered: May 2007
Location: London, UK.
Distribution: Major:FC8. Others:Debian;Zenwalk; Arch; Slack; RHEL.
Posts: 544

Rep: Reputation: 30
Quote:
Originally Posted by eboy98 View Post
what you need to do:

...

=============myyum.repo==================
[local-installation]
name=yum-loacl
baseurl=file:///rpms/packages
enabled=1
gpgcheck=0
agreed. precisely as I suggested back on the 18th !! (previous post)
 
Old 08-23-2008, 03:36 AM   #20
Mr. ameya sathe
Member
 
Registered: Jul 2007
Distribution: RedHat Enterprise 5 Server Edition; Ubuntu 8.04 ; RHCE Certificate number: 805008741034103
Posts: 78

Original Poster
Blog Entries: 8

Rep: Reputation: Disabled
I repeat

I don't want to copy the whole RPM packages from DVD
 
Old 08-23-2008, 04:40 AM   #21
eboy98
Member
 
Registered: Oct 2007
Distribution: RHEL5
Posts: 64

Rep: Reputation: 15
Quote:
Originally Posted by Mr. ameya sathe View Post
I repeat

I don't want to copy the whole RPM packages from DVD

i think you can provide your dvd path here "baseurl=file:///rpms/packages" edit this line"

actually my opinion is you can never do use yum to intall dvd packages. cause when you dump all your packages in you harddirve like /rmp/pacakge then there is a commmand
Code:
createrepo -v /rpm/package
that you need to run. this command will create
some necessary file that related with yum to install by yum. see the following...after use that command createrepo a directory will create name repodata with some files

this is the example path of my own repository that i created

Code:
[root@localhost backup]# pwd
/fc7backup/backup/#all rpm are placed here
[root@localhost backup]# cd repodata/
[root@localhost repodata]# pwd
/fc7backup/backup/repodata
[root@localhost repodata]# ls
filelists.xml.gz  other.xml.gz  primary.xml.gz  repomd.xml

these are the files that is am talking about
so as we know as DVD probably ROM...so creating files may be not possible.

thats what i can explain with my short knowledge.
thanks
 
Old 08-23-2008, 05:16 AM   #22
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I note that the directory structure on the DVD is somewhat different from Fedora.

Try

baseurl=file:///media/RHEL_5%20i386%20DVD/Server

in place of the previous attempt (ie add /Server to the end)
 
  


Reply

Tags
dvd, ftp, installation, using, yum



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to install vlc using yum command av.dubey Linux - Newbie 13 11-12-2009 10:19 PM
where yum saves downloaded packages . how can i install all of these on other system amolgupta Linux - Software 3 11-22-2007 06:54 AM
Unable to install xorg-x11 via yum guarriman Fedora 2 07-02-2007 07:49 AM
yum unable to detect the installed packages ? gopiindiaever Linux - Software 3 09-18-2006 02:24 AM
How to install packages from DVD with Yum? vlaki22 Linux - Software 1 09-02-2006 08:10 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 09:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration