Differences
This shows you the differences between two versions of the page.
tech:linux:aptitude_undo [2017/12/03 06:26] |
tech:linux:aptitude_undo [2017/12/03 06:26] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Aptitude Undo Operation ====== | ||
+ | While in the Aptitude interactive mode, what can you do to undo an accidentally operation. For e.g. a press of the minus key on a large package group! Aptitude does now allow you do perform a mass undo of the action you just initiated. To undo do the following: | ||
+ | |||
+ | <code bash> | ||
+ | # First Quit aptitude interface | ||
+ | # | ||
+ | # Backup current pkgstates file | ||
+ | cp /var/lib/aptitude/pkgstates /tmp/ | ||
+ | # | ||
+ | # Replace with copy | ||
+ | cp /var/backups/aptitude.pkgstates.0 /var/lib/aptitude/pkgstates | ||
+ | </code> | ||