Page 1 of 1

How to list packages installed since installing LMDE2 ? [SOLVED]

Posted: Fri Jun 16, 2017 6:04 pm
by ron_h
I haven't kept any manual record of packages that I've installed since installing LMDE2 on my desktop. I'm now setting up an old laptop I've been given with LMDE2 and I'd like to install much the same packages (won't be identical as the laptop is 32bit while the desktop is 64bit).

Is there a way to get a list of ONLY the packages on the desktop installed since the LMDE2 install ? I have used dpkg to list all the installed packages but I'd sooner not work all the way through line by line.

Ron

Re: How to list packages installed since installing LMDE2 ?

Posted: Fri Jun 16, 2017 6:12 pm
by karlchen
Hello, Ron.

The logfile /var/log/dpkg.log (previous dpkg.log.1, even older dpkg.log2.gz, dpkg.log.3.gz ..) might come in almost handy.

Code: Select all

grep "status installed" dpkg.log
might still list too many packages, but it might be a good starting point.

HTH,
Karl

Re: How to list packages installed since installing LMDE2 ?

Posted: Fri Jun 16, 2017 8:18 pm
by ron_h
Many thanks, Karl, that's a much more manageable list to work with.

Ron

Re: How to list packages installed since installing LMDE2 ? [SOLVED]

Posted: Sat Jun 17, 2017 10:52 pm
by Bill Statler
Another option, if you're installing a fresh copy of LMDE2 on the laptop:
  • List all the packages installed on the desktop computer
  • List all the packages installed on the laptop computer (after the fresh LMDE2 installation)
  • Compare the lists
So, something like this:

Code: Select all

Desktop:
dpkg-query -f '${Package}\n' -W > packages-desktop.txt
Laptop:
dpkg-query -f '${Package}\n' -W > packages-laptop.txt
Copy one file to the other computer, then:
diff packages-laptop.txt packages-desktop.txt | grep ">" > packages-to-add.txt
(I'm sure there's a more elegant way to do that, but it worked well enough for me!)

Re: How to list packages installed since installing LMDE2 ? [SOLVED]

Posted: Sun Jun 18, 2017 2:29 am
by ron_h
Thanks, Bill, I may end up having to do that. However it is my observation that many packages are 32bit or 64bit specific, so there would legitimately be perhaps many different packages on each machine.

Ron