Tuesday, May 14, 2024
10
rated 0 times [  10] [ 0]  / answers: 1 / hits: 1036  / 3 Years ago, sun, august 1, 2021, 3:03:59

I have a backup of my Ubuntu computer stored on my iMac. My hard disk died and I want get a list of the packages that was installed by just reading from the file system and without running commands like dpkg --get-selections


More From » package-management

 Answers
5

You can do it by reading /var/lib/dpkg/status from your backup.



In my running Ubuntu:



grep '^Package:' /var/lib/dpkg/status | cut -f2 -d' '

[#11678] Monday, August 2, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
igeonlothe

Total Points: 370
Total Questions: 121
Total Answers: 114

Location: United States Minor Outlying Island
Member since Fri, Feb 5, 2021
3 Years ago
;