Advertisement
theitd

Debian upgrade clean-up

Sep 2nd, 2015
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.40 KB | None | 0 0
  1. ## Purge after upgrade from Debian Wheezy to Jessie
  2.  
  3. #The following command displays a list of all removed packages that may have configuration files left on the system (if any):
  4.  
  5. dpkg -l | awk '/^rc/ { print $2 }'
  6.  
  7. #The packages can be removed by using apt-get purge. Assuming you want to purge all of them in one go, you can use the following command:
  8.  
  9. apt-get purge $(dpkg -l | awk '/^rc/ { print $2 }')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement