Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 601  / 2 Years ago, fri, september 16, 2022, 11:03:54

My SSD crashed, and I can't find the output from dpkg --get-selections that I created recently.
However, I could make a copy of the /var/backups/dpkg.status.0 file from the broken ssd. I feel like all the information, that dpkg --get-selections gave me is in there, but in the wron format. And I feel like, there must be a command, that allows to convert it (rather that writing a script myself).
Question: What is that command?


More From » dpkg

 Answers
4

Basically from what im thinking is that all applications in /var/backups/dpkg.status.0 have install ok installed line so you will only have to use this command to get same output of dpkg --get-selections: grep "Package" < /var/backups/dpkg.status.0 | awk '{print $2" install"}'. Check it.


[#32627] Saturday, September 17, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rmodmi

Total Points: 390
Total Questions: 122
Total Answers: 111

Location: Venezuela
Member since Mon, Oct 18, 2021
3 Years ago
;