Re: [DNG] Finding installed packages, but from a backup

2021-01-02 Thread Steve Litt
On Thu, 31 Dec 2020 11:25:58 -0800 Rick Moen wrote: > My _personal_ favourite part of that StackExchange page is where it > says there's a solution to that difficult and vexing problem in the > Linuxmafia.com Knowledgebase at > http://linuxmafia.com/faq/Debian/package-database-rebuild.html .

Re: [DNG] Finding installed packages, but from a backup

2020-12-31 Thread Rick Moen
Quoting Antony Stone (antony.st...@devuan.open.source.it): > > this might be helpful : > > https://unix.stackexchange.com/questions/161866 > > Hm, some lessons for naïve sysadmins in there :) My _personal_ favourite part of that StackExchange page is where it says there's a solution to that diff

Re: [DNG] Finding installed packages, but from a backup

2020-12-31 Thread Stefan Krusche
Dear Anthony, Am Donnerstag, 31. Dezember 2020 schrieb Antony Stone: > Hi. > > I know I can get a list of the packages installed on a > currently-running system using commands such as: > > dpkg-query -l > apt list --installed > aptitude search ~i > > However, if there any way I c

Re: [DNG] Finding installed packages, but from a backup

2020-12-31 Thread Pontus Goffe via Dng
Not sure this is exactly what you are after but I have a cron job that runs: dpkg --get-selections | grep -v "deinstall$" | grep -v "hold$" | grep "install" | awk '{print $1;}' and put the output in a file that I backup or grab, i.e. ~/selections-$(hostname).txt. The file is usually just a ref

Re: [DNG] Finding installed packages, but from a backup

2020-12-31 Thread Antony Stone
On Thursday 31 December 2020 at 12:18:24, Dimitris via Dng wrote: > Στις 31/12/20 12:50 μ.μ., ο/η Antony Stone έγραψε: > > I have_all_ files from the machine I want to investigate, and I'm hoping > > that there's something in /var/cache/apt or /var/lib/dpkg which would > > allow me to get the sam

Re: [DNG] Finding installed packages, but from a backup

2020-12-31 Thread Dimitris via Dng
Στις 31/12/20 12:50 μ.μ., ο/η Antony Stone έγραψε: I have_all_ files from the machine I want to investigate, and I'm hoping that there's something in /var/cache/apt or /var/lib/dpkg which would allow me to get the same sort of list as the above commands produce. /var/lib/dpkg/status holds all

[DNG] Finding installed packages, but from a backup

2020-12-31 Thread Antony Stone
Hi. I know I can get a list of the packages installed on a currently-running system using commands such as: dpkg-query -l apt list --installed aptitude search ~i However, if there any way I can do the same thing, but when I simply have a copy (backup) of the machine, an