Advertisement
itnetsec

Create a list of installed packages on a Debian based system

Dec 1st, 2011
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. #Written by: Michael Wood
  2. #Date 12-01-2011
  3.  
  4. If you want to view what packages you have installed run:
  5. sudo dpkg --get-selections
  6.  
  7. To pipe the output to a file run:
  8. sudo dpkg --get-selections > installed-software
  9.  
  10. Now, say you had a server or your machine setup the way you wanted it. You can run the above command, save the file, and if you ever have to re-install the operating system you can just issue this command:
  11. sudo dpkg --set-selections < installed-software
  12. sudo deselect
  13.  
  14. Now all the packages you had installed before will be re-installed very quickly.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement