howtos:create_a_package_list
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
howtos:create_a_package_list [25/08/2017 17:48] – [Using the list] domingo | howtos:create_a_package_list [02/12/2018 21:34] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Intro ====== | ||
+ | |||
+ | Reinstalling a machine it can be a pain to remember all the packages installed that must be installed again. | ||
+ | |||
+ | Here's a dirty description of how to make an install list. | ||
+ | |||
+ | Note this is done on a Ubuntu system. | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== Making the list ===== | ||
+ | |||
+ | Not all software on the system is taken from the repositories and thus can't be used in the install script. So first find the software that must be excluded from the list. | ||
+ | |||
+ | Go into Synaptics and find the selection " | ||
+ | |||
+ | {{: | ||
+ | |||
+ | |||
+ | |||
+ | This list of packages must be filtered out of the list. Here is a command creating a list and filtering out what I must download afterwards: | ||
+ | |||
+ | < | ||
+ | dpkg -l |grep '^ii '|sed -r ' | ||
+ | </ | ||
+ | |||
+ | The part "egrep -v " | ||
+ | |||
+ | The file list.txt now contains the list of packages that was installed on the old system. | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== Using the list ===== | ||
+ | |||
+ | Now to get all the software back on the new system, copy list.txt onto it and run: | ||
+ | |||
+ | < | ||
+ | sudo for i in `cat list.txt`; do apt-get install -y $i; done | ||
+ | </ | ||
+ | |||
+ | |||
+ | Et voilà and your system is now a lot heavier with software LOL | ||
+ | |||
+ | //Update//: A quicker way of installing the software is to convert the list into one line [[regex-stuff-mail# | ||
+ | |||
+ | < | ||
+ | sudo apt-get install -y `cat list.txt | tr " | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | {{: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | {{: | ||