Is there a command to install basic applications on Ubuntu 16.04?v T Bit Ii g HEeGIi
I'm using a dedicated server and this provider installs Ubuntu 16.04 with almost nothing. For example none of these commands exist so I need to install them one by one:
curl, nano, tmux, htop, iptables, ifconfig and many more of these basic stuff that I don't recall.
I used to use another dedicated server provider and their images would come with those basic stuff.
Now it's a hassle to install those one by one every time I get a new dedicated server (and I get a lot) and/or when I reinstall the OS and they don't have a snapshot feature either.
Is there a command that I can get basic stuff in bundle or something without having to run apt install xx each time for each app I mentioned above?
2 Answers
Is creating a script to grab what you want beyond you?
You should only grab the bare minimum set of tools you need, so it's better to create your own minimal set than use a predefined set created by someone else (it'll likely contain packages you don't need)
As @Rinzwind said in comments, your script may also include the removal of default installed packages you don't need (ie. to help achieve the minimal packages your system actually needs).
The fastest solution to install these would be to install the ubuntu-server packageset which has dependencies on these tools and scripts by default. Then you can script the removal of tools you don't need.
However, if you do so, ubuntu-server gets removed (it's a metapackage, it won't break your system if it's removed), and then if you ever run apt autoremove at any point after, those tools will have a chance to be removed since their only dependency point on-system was ubuntu-server
apt install curl nano tmux htop iptables net-tools– pLumo 8 hours agonano... – pLumo 8 hours agodpkg --get-selectionsanddpkg --set-selections. See for example Install many applications using one command – steeldriver 8 hours ago