LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 05-10-2010, 03:48 AM   #1
linux.mahi
LQ Newbie
 
Registered: May 2010
Posts: 5

Rep: Reputation: 0
Angry How to add software in fedora 12 using DVD


Hi all,

Iam new to Linux.
I installed fedora 12 from DVD. after i install, there is no development softwares.
i want to install some programming software. But if i try ADD/REMOVE software option, every time its looking for internet connection. is it possible to install from DVD.
I was not configure this, during installation time.

Please help me to resolve this...
Thanks,
Mahi.
 
Old 05-10-2010, 04:15 AM   #2
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
Wink

Hi

Remember that if you use the DVD, you won't have access to the latest packages/kernel upgrades and so forth.

However, if for some reason you must use the DVD.

1. First, go into /etc/yum.repos.d/ and move all the repo files in there to your home directory (or somewhere else safe) - alternately you can go into each repo file and set enabled=0 for each of the repos.

2. Create a file called fedora12-dvd.repo (or something similar) in /etc/yum.repos.d/

3. Add the following lines into the newly created file using vi or your favourite editor:

Code:
[fedora-dvd]
name=Fedora 12 DVD
baseurl=file:///media/Fedora\ 12\ x86_64\ DVD/
enabled=1
4. Run the following:

Code:
# yum clean all
# yum update
# yum install whatever
And that should do it

Cheers,
Yas
 
Old 05-10-2010, 05:45 AM   #3
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 248Reputation: 248Reputation: 248
Alternatively, you can create the repo as above then use yum like this :

Code:
yum --disablerepo=* --enablerepo=fedora12-dvd install <package-name>
Or, once the repo is created, open Add/Remove software, use the System > software sources menu to uncheck all the repos except the dvd repo and install as normal. Don't forget to put the check marks back where they were afterwards, and rename the dvd repo to fedora12-dvd.repo.old
 
Old 05-10-2010, 06:01 AM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,627

Rep: Reputation: Disabled
I would personally go with smoker's advise. That would be much easier and chances of you breaking your yum would minimize. Let yum do it itself.
 
Old 05-10-2010, 06:55 AM   #5
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
Thanks smoker - I have learnt something as well
 
Old 05-10-2010, 07:00 AM   #6
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 248Reputation: 248Reputation: 248
Quote:
Originally Posted by alli_yas View Post
Thanks smoker - I have learnt something as well
No problem. I have had lots of practice recently, as I made a dvd repo for updates without a net connection.

The thing with --disablerepo is that it only disables them for the current command, so you don't have to manually disable/enable each repo.
 
Old 05-10-2010, 07:57 AM   #7
linux.mahi
LQ Newbie
 
Registered: May 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for all,

If i want to install all package from DVD, can i use '*' on end,

yum --disablerepo=* --enablerepo=fedora12-dvd install=*

Thanks,
 
Old 05-10-2010, 09:49 AM   #8
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 248Reputation: 248Reputation: 248
Quote:
Originally Posted by linux.mahi View Post
Thanks for all,

If i want to install all package from DVD, can i use '*' on end,

yum --disablerepo=* --enablerepo=fedora12-dvd install=*

Thanks,
I wouldn't advise it. Only install what you need, or you will have problems caused by things you didn't need to install.
That's if yum will even recognise * as a package name.

If you want all the development tools use
Code:
yum --disablerepo=* --enablerepo=fedora12-dvd groupinstall "Development Tools"

Last edited by smoker; 05-10-2010 at 09:51 AM.
 
Old 05-13-2010, 06:11 AM   #9
linux.mahi
LQ Newbie
 
Registered: May 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for all.
I learned new thing today.
thanks again.
 
Old 05-13-2010, 06:12 AM   #10
linux.mahi
LQ Newbie
 
Registered: May 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for all.
I learned new thing today.
thanks again.
 
Old 07-01-2010, 12:53 AM   #11
arungeorge
LQ Newbie
 
Registered: Jul 2010
Posts: 1

Rep: Reputation: 0
One more thing to add..

Add these lines...

gpgcheck = 0
gpgkey = file:///media/<Fedora DVD name>/<GPG File Name >.

Otherwise you may get ' Public key error' while installing the package..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how to add specific software repository in opensuse 11.2 without installation dvd linux.ab Linux - Newbie 1 02-16-2010 06:27 AM
Add software from Fedora cd amredries Fedora 3 11-26-2008 01:05 AM
Fedora 8: Add/Remove Software SpiderIRE Linux - Software 6 02-04-2008 10:48 AM
cannot Add/remove software fedora 7 a_c_g_t Linux - Newbie 1 10-25-2007 05:15 AM


All times are GMT -5. The time now is 04:29 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration