Re: Uninstalling a REPO?

Jarod Wilson <[email protected]>
Newsgroups gmane.linux.freshrpms.user
Message-ID <[email protected]>
On Jan 03, 2006, at 18:14, J.B. Nicholson-Owens wrote:

> I'd like to uninstall a repo -- not just the yum/apt/smart/etc.  
> package
> configuration for that repo -- but also all of the packages that  
> came from that
> repo.  But I'd also like to be left with a system that boots and  
> runs as one
> would expect.  And, finally, I'd like to avoid wiping my Fedora  
> Core install and
> reinstalling from scratch.
>
> How easy is this to do?

Not very. Lots of tedious work. Well, depending on how many packages  
you've installed...

> I figure that if I remove the medley-package-config (which brought  
> in a bunch of
> repos, some of which are apparently incompatible with Fedora Core  
> and Fedora
> Extras) and then install the packages which are dependencies of
> medley-package-config (like Firefox, X11, perl, etc.) that I need  
> to have a
> useful system, I should be okay. But I'm guessing that this is not  
> the case and
> that I've overlooked something.  Any clues here?

You're a little off there. There are next to zero packages (if any)  
that are dependencies of medley-package-config. As a result of having  
a ton of repos enabled via medley-package-config, you may have  
installed a bunch of 3rd-party packages, but they aren't dependencies  
of medley-package-config.

And for the record, its more that there are conflicting/overlapping  
packages in third-party repos, not that they're entirely  
incompatible. You do have to pick and choose some, but if you're  
careful, they all can mix together just fine. I do just that quite  
frequently. There's some discussion on the fedora-devel list right  
now about trying to minimize these overlaps.

> Also, is any package manager good with doing this more easily?
>
>   $ magic-package-manager --removerepo ATrpms
>   $ magic-package-manage  --fix-my-broken-machine

Not that I know of. It could be done with some scripting though.  
Something along the lines of querying your rpm database for packages  
ending in certain repo tags, probably with a custom query format you  
could parse... Then rpm -e --nodeps the package, then use a depsolver  
of your choice to install that package from the set of repositories  
you do want enabled.

> It seems odd (and seriously bad) that it's so easy to add a new  
> repo to one's
> system, but so hard to remove the effects of that repo from one's  
> system.

Its equally odd (and seriously bad) that its so easy to buy a gun and  
shoot yourself, but so hard to undo the effects. :)

-- 
Jarod Wilson
[email protected]
PGP.sig (application/pgp-signature, 186 B) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.