Linux Software Reinstallation – Tools to Reinstall Software After Fresh Install

linuxsoftware installation

Every now and then I need to reinstall Linux system (mainly Ubuntu based distros). The process of reinstalling every piece of software I need is really boring and time consuming. Is there any software that can help me out? For Windows there is Ninite, is there something else for Linux?

Edit: Thanks for all the answers! I went with Ansible and it is an amazing tool.

Best Answer

Ansible is an open-source software provisioning, configuration management, and application-deployment tool. It runs on many Unix-like systems, and can configure both Unix-like systems as well as Microsoft Windows. It includes its own declarative language to describe system configuration

(From Wikipedia.) Homepage (Github).

There are several others in the same category. Reading about should give you vocabulary to search for the others, and compare, if needed. Nix is a newer contender. Some say "more complex, but maybe just right.". is also on the scene.

Ansible example for hostname myhost, module apt (replace with yum or whatever):

ansible -K -i myhost, -m apt -a "name=tcpdump,tmux state=present" --become myhost

The list "tcpdump,tmux" can be extended with commas. (The fact, that the hostname myhost is twice in the command-line, because we are not using a fixed host inventory list, but an ad-hoc one, with the trailing comma.)

This only scratches the surface, Ansible has an extensive module collection.

Related Question