Tuesday, April 30, 2024
25
rated 0 times [  25] [ 0]  / answers: 1 / hits: 17115  / 1 Year ago, tue, february 7, 2023, 4:35:15

How can I remove all packages from Ubuntu and make sure ubuntu-minimal will not be lost?


More From » installation

 Answers
1

It's fairly easy with aptitude. First, make sure you have it and ubuntu-minimal installed:



sudo apt-get install aptitude ubuntu-minimal


Then, mark all packages as being automatically installed, except ubuntu-minimal:



sudo aptitude markauto '~i!~nubuntu-minimal'


After that, you should be left with only ubuntu-minimal, and the things it depends on.



WARNING: This doesn't include a kernel, so I suggest installing linux-image-generic immediately.


[#33227] Tuesday, February 7, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
herfor

Total Points: 490
Total Questions: 101
Total Answers: 110

Location: Guadeloupe
Member since Mon, Jan 24, 2022
2 Years ago
;