Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-15-2009, 09:02 AM   #1
Registered: Jan 2009
Posts: 32

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

please keep it simple! (on fedora, aa1)

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

Rep: Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547
If your question is due to, then you should know that reinstalling a package manager is not the way to deal with that kind of problem.
Old 03-15-2009, 12:30 PM   #3
Senior Member
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
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:
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 12:33 PM.
Old 03-15-2009, 03:00 PM   #4
John VV
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,229

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


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

All times are GMT -5. The time now is 02:44 AM.

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