Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Fix Fedora 5 Add/Remove Software Problem, fix the problem that cannot add/remove software without Internet conne
jedipi
post Apr 5 2006, 05:50 AM
Post #1


Premium Member
Group Icon

Group: Members
Posts: 352
Joined: 2-March 05
From: Australia
Member No.: 2,859



The add/remove software in Fedora 5 just does not work if you
machine is not connected to the Internet. It wont add or remove
any package for you even though you have the disks.

If you read files in /etc/yum.repos.d/, you will understand.
Fedora 5 will connect to redhat's website when you want to update
your Fedora.

Here is a simple way to update your fedora 5 via FC5 iso file.
1, move all files, which are under /etc/yum.repos.d directory, to
other directory. for example, backup directory.

2. create a new directory *.reop in /etc/dym.repos.d
Copy and Paste the following text into it and save it

CODE

[CDROM]
name=cdrom
baseurl=file:///mnt/DVD
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
gpgcheck=0


3. last step, you need too mount you iso file.
for example: mount /home/FC-5-i386-DVD.iso /mnt/DVD -o loop

That's it. Now it can be update via local ISO file or DVD/CD-ROM.
Go to the top of the page
 
+Quote Post
mastercomputers
post Apr 6 2006, 08:49 AM
Post #2


BUG.SWAT.PATROL
Group Icon

Group: Members
Posts: 626
Joined: 1-September 04
From: Auckland, New Zealand
Member No.: 27



Hey jedipi,

I've never had this problem, mainly because I'm usually always connected to the internet, but just querying the location of your /mnt/DVD did you create that, because most removable drive now end up in /media/

Also, I noticed you're mounting the .iso, would be possible, to make the DVD itself. However you do not have to rely on yum for removal and can usually get by using:

CODE
su -c "rpm -e packagename"


Also what about just adding that entry into your yum repo directory, or yum.conf and don't enable it unless you want to remove, and you can disable all the others, I haven't tested this out though, and don't think I would to be honest.

Another tip though, if you want to install a package locally, YUM won't install if there's no GPG matching key, but to do that, just turn off gpgcheck in yum.conf and localinstalls will work fine. Otherwise using the rpm -ivh packagename can install it too.

e.g.
CODE
su -c "yum -y localinstall /home/user/packagename.rpm"
or
su -c "rpm -ivh /home/user/packagename.rpm"



Cheers,


MC
Go to the top of the page
 
+Quote Post
xboxrulz
post Apr 8 2006, 08:10 PM
Post #3


Colonel Panic
Group Icon

Group: [MODERATOR]
Posts: 2,706
Joined: 25-March 05
From: Toronto, Ontario, Canada
Member No.: 3,233



try using sudo instead. Much cleaner than su -c

xboxrulz
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Linux Users: The Best Linux Software?(15)
  2. Why Can't I Install Software As Root?(3)
  3. Fedora Core 3 Install/upgrade(3)
  4. Fedora Core 3 And Vmware(3)
  5. Which Version Of Fedora Will Run On An Athlon64?(5)
  6. Redhat Gave Up Fedora?(2)
  7. Find Command Error In Fedora 4(2)
  8. Fedora Core 4(6)
  9. Which Linux Is Better Among Redhat & Fedora?(5)
  10. Install Jdk1.5.0 Under Fedora Core 4(5)
  11. How To Remove The ^m In Cpp Files ?(5)
  12. Fedora Core 4: A New User's First Impressions(18)
  13. Windows Software On Linux(13)
  14. Any Beginner Tutorials On Fedora Core 4 ?(4)
  15. How To Install Applications In Fedora(12)
  1. Fedora Core 5 Problems(5)
  2. Knoppix!(3)
  3. Fedora Core 5 Under Virtual Pc(5)
  4. Problem With Fedora Core 5 Installation(14)
  5. Fedora Directory Server(0)
  6. Using Ndiswrapper In Fedora Core 6(4)
  7. Fedora Core 6 Install Problem(6)
  8. No Internet(6)
  9. Internet Explorer 5, 5.5, 6 And 7 In Linux(2)
  10. Beginner's Guide To Installing Software In Ubuntu(2)
  11. Setting Up Fedora Core For Web Hosting(0)
  12. Virtualization In Linux: A Review Of Four Software Choices(4)
  13. Strange Error When Trying To Install Fedora Core 9(4)


 



- Lo-Fi Version Time is now: 22nd August 2008 - 05:18 AM