Tuesday, May 7, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 21945  / 1 Year ago, sun, april 30, 2023, 4:49:24

In an attempt to uninstall wine I ran the command sudo apt-get purge wine* which as you may have guessed removed many of the default packages. I am wondering if there is a way to use the installation disk to reinstall the default packages without overwriting the file system. Not sure if it makes a difference or not, but I am duel booting Windows 8 and Ubuntu 14.04 which was updated from Ubuntu 12.04.



Thanks in advance.


More From » apt

 Answers
1

From the answer to this question: How to uninstall all but the default Ubuntu packages?:



comm -3 <(cat filesystem.manifest | awk '{print $1}' | sort) <(cat filesystem.manifest-remove | sort) > default.txt
dpkg --get-selections | awk '{print $1}' | sort > current.txt
diff -u default.txt current.txt | grep "^+[^+]" | cut -c 2- > installed.txt
diff -u default.txt current.txt | grep "^-[^-]" | cut -c 2- > uninstalled.txt


That makes 4 files:
default.txt is the list of all default packages,
current.txt is the list of all current packages,
installed.txt is the list of all packages you have added,
uninstalled.txt is what you want to look at, it has all the packages that you've removed.



You could then do cat uninstalled.txt | grep wine to list all the uninstalled packages that were related to wine.



Supposedly this could install all packages you've removed, but I wouldn't count on it:



sudo apt-get install ubuntu-desktop


[#22915] Sunday, April 30, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
oredoise

Total Points: 66
Total Questions: 116
Total Answers: 111

Location: Lebanon
Member since Sun, Aug 2, 2020
4 Years ago
;