Skip to content

Bash script for saving and restoring a list of top-level packages using aptitude

Notifications You must be signed in to change notification settings

mainmachine/pkgrestore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

pkgrestore

Bash script for saving and restoring a list of top-level packages using aptitude

To save a list of top-level packages (does not include dependencies) to a file, run ./pkgrestore with no arguments. Output filename includes hostname of running machine and date/time, in the form of packages_$HOSTNAME_$STAMP.lst

To restore, run ./pkgrestore -i packages_XXX_XXX.lst and confirm. This will read the list file and call aptitude to install all packages in teh list.

This script could be used as part of a hybird backup/ reload approach, all that would be needed is to archive/ copy the user's home folder, and perhaps some other configuration files from /etc/* or wherever.

About

Bash script for saving and restoring a list of top-level packages using aptitude

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages