[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to make dpkg forget a package was ever there?



William Ballard wrote:
On Mon, Jan 10, 2005 at 12:22:50AM -0500, Roberto Sanchez wrote:

I have edited /var/lib/dpkg/status to recover from a b0rked system after a
power outage in the middle of a fairly big dist-upgrade.  Just be careful,
as you have the potential to really hose dpkg's idea of what is on your
system.


I'll show you the bit I want to edit out:
begins...
 present in the `icu' and `icu-locales` packages.

Package: fglrx-4.3.0-kernel-2.6.9
Status: purge ok not-installed
Priority: extra
Section: non-free/x11
Architecture: i386

Package: unrar
....continues

I want to remove the middle bit, related to fglrx-4.3.0-kernel-2.6.9.
Just chomp it out?

It also appears in status-old.



Removing the Architecture line seems safest if you want to mess with the status file[which I don't recommend]. Alternatively, apply the attached patch to vrms[which is just a perl script].

Random ironic aside, shouldn't vrms have a copyright/license header and the top of the perl script or does /usr/share/doc/vrms/copyright suffice? A quick survey of perl scripts in /usr/bin/ showed most have a copyright/license header but for instance bonobo-slay also doesn't.
--- /usr/bin/vrms	2002-08-05 22:59:06.000000000 -0400
+++ ./vrms	2005-01-10 00:57:29.000000000 -0500
@@ -92,7 +92,7 @@
 		my (@pkglines) = split(/\n/, $clump);
 		###  iff more than for lines, package is installed, so process it
 		###   (speed-up by skipping don't-care entries)
-		if(@pkglines > 4) {
+		if(@pkglines > 5) {
 			my $pkg = "";			###  name of this package
 			my $pkgstatus = "";		###  status
 			my $plan = "";			###  install plan (hold, deinstall, purge, install, etc.)

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: