Re: How to recover after unintentional 'dpkg --unpack' ? (was ... Re: Dpkg SNAFU was Re: Oops!)
On Sun, 11 Aug 2013, Bob Proulx wrote:
> Patrick Bartek wrote:
> > > > have resulted in Gnome being install, too. More or less. So I
> > > > just did as root in /root a 'dpkg --download,' and then an
> > > > '--unpack' thinking that would uncompress the .deb file in /root
> > > > from which I would get the single svg file I needed, and then
> > > > just
>
> The command you were looking for was 'dpkg-deb -x foo.deb foo-dir'.
Wish I had know about that a couple days ago. Would have saved a lot
of time and reading and rereading.
>
> > > > delete everything else. Simple. Right? Wrong. Now, I'm stuck
> > > > with about 4.5 megs of Gnome data, icons,
> >
> > [snip]
>
> > If I don't hear anything bad to the contrary in the next day or so,
> > I'm just going to use "--purge" to remove the package after creating
> > a copy of the file I need in a safe directory, then copy the copy
> > back after the purging. Hopefully, it will work.
>
> That is the correct thing to do. The dpkg package manager knows the
> state of the installation. Simply tell it to purge the package.
> Simple! No need to look any further.
>
> dpkg --purge foo
Thanks for the info and the recommendations.
B
Reply to: