On Thu, Aug 14, 2003 at 09:23:31AM -0700, Rob Hudson wrote:
> Is there a way to tell apt-get to remove all packages from a particular
> source?  I added the Gnome2.2 backport for woody to my sources, and now
> a lot of stuff is broken (esp evolution).  I can't compile firebird
> anymore due to a pango compile error.  So I want to back out to where I
> was.

Doubt it, not automagically anyway.  You could reinstall the same
packages from another source.  Hopefully you saved a list of all of the
packages you upgraded.  However since you didn't, here's what I would
do.

Hopefully the package source you're looking at has only gnome 2.2 packages
in it.  Get the listing of all packages in that tree.  This is where it
is located after an apt-get update:
/var/lib/apt/lists/<mirror here>

example mirror file name: 
ftp-mirror.internap.com_pub_debian_dists_testing_main_binary-i386_Packages

Now here is a list of all of the package names in the tree:
egrep "^Package:" /var/lib/apt/lists/<mirror> |cut -f 2 -d :

Iterate over that list and see which packages are installed.  Take that
new list and apt-get --reinstall install <packages> from a better source
or dpkg -r them.

Look at the list before removing them.  That tree might have libc6 and
other important ones.  

Cory

-- 
Cory Petkovsek                                       Adapting Information
Adaptable IT Consulting                                Technology to your   
(541) 914-8417                                                   business
[EMAIL PROTECTED]                                  www.AdaptableIT.com
_______________________________________________
EuG-LUG mailing list
[EMAIL PROTECTED]
http://mailman.efn.org/cgi-bin/listinfo/eug-lug

Reply via email to