LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 03-15-2009, 08:02 AM   #1
MFA
Member
 
Registered: Jan 2009
Posts: 32

Rep: Reputation: 15
how to delete and re-install package manager


please keep it simple! (on fedora, aa1)
thanks

Last edited by MFA; 03-15-2009 at 08:04 AM.
 
Old 03-15-2009, 09:22 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
If your question is due to http://www.linuxquestions.org/questi...es-up.-711731/, then you should know that reinstalling a package manager is not the way to deal with that kind of problem.
 
Old 03-15-2009, 11:30 AM   #3
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Your post does not make clear if you are referring to the PackageKit or the actual manager. So, for this note, I'll assume that you're concerned about the program that actually removes or installs Fedora RPM files, and that you've followed unSpawn's advice for resolving the dependency problem you had before. (By the way, the commands he suggested you use need to be run with "root" permission in a terminal window. Use the command su - to switch to running as "root.")

Basically, you need a package manager to install or remove a package manager. (Unless you build your own manager from source code which, from the tone of your post, you don't want to do.)

First, a little background:

Most distributions are moving to implement the "PackageKit" methodology which is similar to the Windows system that automatically checks for program updates and, if you configure it to do so, downloads and installs them. Many other programs depend on the "PackageKit" being available, so removing it will trigger removal of all those dependent packages. On Fedora, the cascade of dependencies triggered by removal of the PackageKit will, IIRC, remove GNOME or KDE leaving you with a "command line only" system. So I hope you are not intending to remove and reinstall the PackageKit.

On Fedora the default base package manager is rpm, and that program is used by most of the manager shells to do the actual installation and removal of packages. I think that only the smart package manager, on Fedora, does not rely on rpm to do the actual installation and removal of rpm file.

There are several different package managers available on Fedora, although yum (The "Yellow-dog Updater, Modified" -- named for an old Red Hat distribution labeled "Yellow-dog") is the default. Other popular shells are apt and smart. There are also GUI "super-shells" that can make using the managers easier. (E.g., yumex for yum; synaptic for apt; smart-gui for smart.) Both GNOME and KDE have their own GUI front-ends (gpackage and kpackage), although they aren't normally installed by default.

Now to answer your question:

For your objective, I'd recommend using the smart package manager since it doesn't rely on the availability of yum or rpm. Open a terminal window and enter the following commands:
Code:
su -
yum install smart smart-gui
smart reinstall yum rpm
Note 1: I haven't actually tried those commands so I'm not sure if they'll work as I hope they might.

Note 2: I don't understand why you want to reinstall the package manager commands. The only rational possibility I can think of is that you've had a disk failure and the binary files are damaged. If that were the case, your problems would be much more sever then problems with the managers.

Note 3: If this thread is, as unSpawn conjectured, related to your dependency problem, try the smart manager - it sometimes does a better job resolving dependencies then yum.

Last edited by PTrenholme; 03-15-2009 at 11:33 AM.
 
Old 03-15-2009, 02:00 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
MFA is this for your Linpus acer if so YOU CAN NOT USE THE FEDORA packages.
 
  


Reply



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
Crashed package manager during install iqbala Ubuntu 9 12-23-2008 07:52 AM
Package Manager -- where do things go after I install? usafitz Linux - Newbie 4 11-28-2007 11:00 PM
Poll: Yast Package Manager vs. Smart Package Manager in 10.1 agentchange SUSE / openSUSE 6 06-02-2006 08:29 AM
How to install SMART package manager? granduke SUSE / openSUSE 2 05-19-2006 05:50 AM
synaptic package manager forcing me to delete a broken package mbman Linux - Software 6 04-25-2006 09:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:25 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