Is there a command to install basic applications on Ubuntu 16.04?Install many applications using one commandInstallation of libavcodec-extra or libmp3lame failsRunning multiple services on one dedicated server with static IPSend mail using SMTP from multiple computers using just an ubuntu server?Low priority process (nice 19) getting more CPU time than regular process (nice 0)Do I need iptables if only two ports are open to the public?OpenVPN Ubuntu 16.04 headless server connects to VPN but no internetBad achive mirror during Server 16.04 install

Why is there so little discussion / research on the philosophy of precision?

What is a CirKle Word™?

Where was Carl Sagan working on a plan to detonate a nuke on the Moon? Where was he applying when he leaked it?

What is the difference between "Grippe" and "Männergrippe"?

Can RMSE and MAE have the same value?

Two questions about typesetting a Roman missal

How do thermal tapes transfer heat despite their low thermal conductivity?

Did the British navy fail to take into account the ballistics correction due to Coriolis force during WW1 Falkland Islands battle?

Why is 7 Bd3 in the Cambridge Springs QGD more often met with 7...Ne4 than 7...dxc4?

What to say to a student who has failed?

Do they have Supervillain(s)?

Why do banks “park” their money at the European Central Bank?

Is there any way to keep a player from killing an NPC?

How to prevent clipped screen edges on my TV, HDMI-connected?

Was there ever a treaty between 2 entities with significantly different translations to the detriment of one party?

What is the difference between Major and Minor Bug?

How do I, an introvert, communicate to my friend and only colleague, an extrovert, that I want to spend my scheduled breaks without them?

What are some interesting features that are common cross-linguistically but don't exist in English?

Why doesn't 'd /= d' throw a division by zero exception?

Would the Republic of Ireland and Northern Ireland be interested in reuniting?

Would it be possible to have a GMO that produces chocolate?

Which book is the Murderer's Gloves magic item from?

Why do all fields in a QFT transform like *irreducible* representations of some group?

Did anyone try to find the little box that held Professor Moriarty and his wife after the crash?



Is there a command to install basic applications on Ubuntu 16.04?


Install many applications using one commandInstallation of libavcodec-extra or libmp3lame failsRunning multiple services on one dedicated server with static IPSend mail using SMTP from multiple computers using just an ubuntu server?Low priority process (nice 19) getting more CPU time than regular process (nice 0)Do I need iptables if only two ports are open to the public?OpenVPN Ubuntu 16.04 headless server connects to VPN but no internetBad achive mirror during Server 16.04 install






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








6















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?










share|improve this question





















  • 10





    Just run it as a single command apt install curl nano tmux htop iptables net-tools

    – pLumo
    Aug 12 at 12:14







  • 15





    there won't be a better solution, because everyone will have a different opinion what are "basic" applications. For example, I would never ever install nano ...

    – pLumo
    Aug 12 at 12:16






  • 5





    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 (that may contain packages you don't need)

    – guiverc
    Aug 12 at 12:17






  • 1





    This ^^^^ For things you want to automate for yourself you create a script. My post install script before the "minimal" option was introduced had lots of apt remove lines

    – Rinzwind
    Aug 12 at 12:18






  • 2





    You can install the packages you want when you provision the first server, and then export and import the package lists using dpkg --get-selections and dpkg --set-selections. See for example Install many applications using one command

    – steeldriver
    Aug 12 at 12:44

















6















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?










share|improve this question





















  • 10





    Just run it as a single command apt install curl nano tmux htop iptables net-tools

    – pLumo
    Aug 12 at 12:14







  • 15





    there won't be a better solution, because everyone will have a different opinion what are "basic" applications. For example, I would never ever install nano ...

    – pLumo
    Aug 12 at 12:16






  • 5





    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 (that may contain packages you don't need)

    – guiverc
    Aug 12 at 12:17






  • 1





    This ^^^^ For things you want to automate for yourself you create a script. My post install script before the "minimal" option was introduced had lots of apt remove lines

    – Rinzwind
    Aug 12 at 12:18






  • 2





    You can install the packages you want when you provision the first server, and then export and import the package lists using dpkg --get-selections and dpkg --set-selections. See for example Install many applications using one command

    – steeldriver
    Aug 12 at 12:44













6












6








6








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?










share|improve this question
















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?







server software-installation cloud






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 12 at 15:04









Eliah Kagan

88.7k22 gold badges247 silver badges387 bronze badges




88.7k22 gold badges247 silver badges387 bronze badges










asked Aug 12 at 12:12









Marry JaneMarry Jane

435 bronze badges




435 bronze badges










  • 10





    Just run it as a single command apt install curl nano tmux htop iptables net-tools

    – pLumo
    Aug 12 at 12:14







  • 15





    there won't be a better solution, because everyone will have a different opinion what are "basic" applications. For example, I would never ever install nano ...

    – pLumo
    Aug 12 at 12:16






  • 5





    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 (that may contain packages you don't need)

    – guiverc
    Aug 12 at 12:17






  • 1





    This ^^^^ For things you want to automate for yourself you create a script. My post install script before the "minimal" option was introduced had lots of apt remove lines

    – Rinzwind
    Aug 12 at 12:18






  • 2





    You can install the packages you want when you provision the first server, and then export and import the package lists using dpkg --get-selections and dpkg --set-selections. See for example Install many applications using one command

    – steeldriver
    Aug 12 at 12:44












  • 10





    Just run it as a single command apt install curl nano tmux htop iptables net-tools

    – pLumo
    Aug 12 at 12:14







  • 15





    there won't be a better solution, because everyone will have a different opinion what are "basic" applications. For example, I would never ever install nano ...

    – pLumo
    Aug 12 at 12:16






  • 5





    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 (that may contain packages you don't need)

    – guiverc
    Aug 12 at 12:17






  • 1





    This ^^^^ For things you want to automate for yourself you create a script. My post install script before the "minimal" option was introduced had lots of apt remove lines

    – Rinzwind
    Aug 12 at 12:18






  • 2





    You can install the packages you want when you provision the first server, and then export and import the package lists using dpkg --get-selections and dpkg --set-selections. See for example Install many applications using one command

    – steeldriver
    Aug 12 at 12:44







10




10





Just run it as a single command apt install curl nano tmux htop iptables net-tools

– pLumo
Aug 12 at 12:14






Just run it as a single command apt install curl nano tmux htop iptables net-tools

– pLumo
Aug 12 at 12:14





15




15





there won't be a better solution, because everyone will have a different opinion what are "basic" applications. For example, I would never ever install nano ...

– pLumo
Aug 12 at 12:16





there won't be a better solution, because everyone will have a different opinion what are "basic" applications. For example, I would never ever install nano ...

– pLumo
Aug 12 at 12:16




5




5





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 (that may contain packages you don't need)

– guiverc
Aug 12 at 12:17





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 (that may contain packages you don't need)

– guiverc
Aug 12 at 12:17




1




1





This ^^^^ For things you want to automate for yourself you create a script. My post install script before the "minimal" option was introduced had lots of apt remove lines

– Rinzwind
Aug 12 at 12:18





This ^^^^ For things you want to automate for yourself you create a script. My post install script before the "minimal" option was introduced had lots of apt remove lines

– Rinzwind
Aug 12 at 12:18




2




2





You can install the packages you want when you provision the first server, and then export and import the package lists using dpkg --get-selections and dpkg --set-selections. See for example Install many applications using one command

– steeldriver
Aug 12 at 12:44





You can install the packages you want when you provision the first server, and then export and import the package lists using dpkg --get-selections and dpkg --set-selections. See for example Install many applications using one command

– steeldriver
Aug 12 at 12:44










4 Answers
4






active

oldest

votes


















12















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






share|improve this answer
































    12















    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).






    share|improve this answer


































      5















      If you don't want to run apt install <packagename> each time, you can combine them in one line



      apt install curl nano tmux htop iptables net-tools



      Alternatively, if you have a reference server you can use



      on the original server



      dpkg --get-selections > /tmp/selections.list 


      on the new server



      dpkg --set-selection < /tmp/selections.list
      apt-get dselect-upgrade


      However, keep in mind this sets all packages !!



      So its advised to only do this on the same OS version, i.e. Ubuntu 16.04 to Ubuntu 16.04.
      If you do this from an old Ubuntu 16.04 to a new Ubuntu 18.04, you will break the new Ubuntu 18.04.






      share|improve this answer
































        2















        If you do this regularly consider using a configuration management tool like Ansible, Chef, Puppet, ...



        You can create a bootstrap playbook/recipe/script (they all call it different) with the configuration you want and the tool makes sure your configuration is met. This can include installed packages, users, groups, ssh keys, passwords ... basically everything that can be configured.






        share|improve this answer



























          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1165171%2fis-there-a-command-to-install-basic-applications-on-ubuntu-16-04%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          4 Answers
          4






          active

          oldest

          votes








          4 Answers
          4






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          12















          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






          share|improve this answer





























            12















            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






            share|improve this answer



























              12














              12










              12









              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






              share|improve this answer













              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







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Aug 12 at 14:18









              Thomas WardThomas Ward

              47.6k23 gold badges128 silver badges184 bronze badges




              47.6k23 gold badges128 silver badges184 bronze badges


























                  12















                  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).






                  share|improve this answer































                    12















                    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).






                    share|improve this answer





























                      12














                      12










                      12









                      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).






                      share|improve this answer















                      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).







                      share|improve this answer














                      share|improve this answer



                      share|improve this answer








                      edited Aug 12 at 12:45

























                      answered Aug 12 at 12:26









                      guivercguiverc

                      7,4802 gold badges17 silver badges26 bronze badges




                      7,4802 gold badges17 silver badges26 bronze badges
























                          5















                          If you don't want to run apt install <packagename> each time, you can combine them in one line



                          apt install curl nano tmux htop iptables net-tools



                          Alternatively, if you have a reference server you can use



                          on the original server



                          dpkg --get-selections > /tmp/selections.list 


                          on the new server



                          dpkg --set-selection < /tmp/selections.list
                          apt-get dselect-upgrade


                          However, keep in mind this sets all packages !!



                          So its advised to only do this on the same OS version, i.e. Ubuntu 16.04 to Ubuntu 16.04.
                          If you do this from an old Ubuntu 16.04 to a new Ubuntu 18.04, you will break the new Ubuntu 18.04.






                          share|improve this answer





























                            5















                            If you don't want to run apt install <packagename> each time, you can combine them in one line



                            apt install curl nano tmux htop iptables net-tools



                            Alternatively, if you have a reference server you can use



                            on the original server



                            dpkg --get-selections > /tmp/selections.list 


                            on the new server



                            dpkg --set-selection < /tmp/selections.list
                            apt-get dselect-upgrade


                            However, keep in mind this sets all packages !!



                            So its advised to only do this on the same OS version, i.e. Ubuntu 16.04 to Ubuntu 16.04.
                            If you do this from an old Ubuntu 16.04 to a new Ubuntu 18.04, you will break the new Ubuntu 18.04.






                            share|improve this answer



























                              5














                              5










                              5









                              If you don't want to run apt install <packagename> each time, you can combine them in one line



                              apt install curl nano tmux htop iptables net-tools



                              Alternatively, if you have a reference server you can use



                              on the original server



                              dpkg --get-selections > /tmp/selections.list 


                              on the new server



                              dpkg --set-selection < /tmp/selections.list
                              apt-get dselect-upgrade


                              However, keep in mind this sets all packages !!



                              So its advised to only do this on the same OS version, i.e. Ubuntu 16.04 to Ubuntu 16.04.
                              If you do this from an old Ubuntu 16.04 to a new Ubuntu 18.04, you will break the new Ubuntu 18.04.






                              share|improve this answer













                              If you don't want to run apt install <packagename> each time, you can combine them in one line



                              apt install curl nano tmux htop iptables net-tools



                              Alternatively, if you have a reference server you can use



                              on the original server



                              dpkg --get-selections > /tmp/selections.list 


                              on the new server



                              dpkg --set-selection < /tmp/selections.list
                              apt-get dselect-upgrade


                              However, keep in mind this sets all packages !!



                              So its advised to only do this on the same OS version, i.e. Ubuntu 16.04 to Ubuntu 16.04.
                              If you do this from an old Ubuntu 16.04 to a new Ubuntu 18.04, you will break the new Ubuntu 18.04.







                              share|improve this answer












                              share|improve this answer



                              share|improve this answer










                              answered Aug 13 at 9:12









                              Robert RiedlRobert Riedl

                              3,55610 silver badges30 bronze badges




                              3,55610 silver badges30 bronze badges
























                                  2















                                  If you do this regularly consider using a configuration management tool like Ansible, Chef, Puppet, ...



                                  You can create a bootstrap playbook/recipe/script (they all call it different) with the configuration you want and the tool makes sure your configuration is met. This can include installed packages, users, groups, ssh keys, passwords ... basically everything that can be configured.






                                  share|improve this answer





























                                    2















                                    If you do this regularly consider using a configuration management tool like Ansible, Chef, Puppet, ...



                                    You can create a bootstrap playbook/recipe/script (they all call it different) with the configuration you want and the tool makes sure your configuration is met. This can include installed packages, users, groups, ssh keys, passwords ... basically everything that can be configured.






                                    share|improve this answer



























                                      2














                                      2










                                      2









                                      If you do this regularly consider using a configuration management tool like Ansible, Chef, Puppet, ...



                                      You can create a bootstrap playbook/recipe/script (they all call it different) with the configuration you want and the tool makes sure your configuration is met. This can include installed packages, users, groups, ssh keys, passwords ... basically everything that can be configured.






                                      share|improve this answer













                                      If you do this regularly consider using a configuration management tool like Ansible, Chef, Puppet, ...



                                      You can create a bootstrap playbook/recipe/script (they all call it different) with the configuration you want and the tool makes sure your configuration is met. This can include installed packages, users, groups, ssh keys, passwords ... basically everything that can be configured.







                                      share|improve this answer












                                      share|improve this answer



                                      share|improve this answer










                                      answered Aug 13 at 9:33









                                      Gerald SchneiderGerald Schneider

                                      4443 silver badges12 bronze badges




                                      4443 silver badges12 bronze badges






























                                          draft saved

                                          draft discarded
















































                                          Thanks for contributing an answer to Ask Ubuntu!


                                          • Please be sure to answer the question. Provide details and share your research!

                                          But avoid


                                          • Asking for help, clarification, or responding to other answers.

                                          • Making statements based on opinion; back them up with references or personal experience.

                                          To learn more, see our tips on writing great answers.




                                          draft saved


                                          draft discarded














                                          StackExchange.ready(
                                          function ()
                                          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1165171%2fis-there-a-command-to-install-basic-applications-on-ubuntu-16-04%23new-answer', 'question_page');

                                          );

                                          Post as a guest















                                          Required, but never shown





















































                                          Required, but never shown














                                          Required, but never shown












                                          Required, but never shown







                                          Required, but never shown

































                                          Required, but never shown














                                          Required, but never shown












                                          Required, but never shown







                                          Required, but never shown







                                          Popular posts from this blog

                                          Grendel Contents Story Scholarship Depictions Notes References Navigation menu10.1093/notesj/gjn112Berserkeree

                                          Area configuration aggregation error after install Porto themeMagento 2.1 CE Installed but front/backend not loading/workingCSS not loading on page within Magento 2 pageCannot install module in Magento 2no commands defined in the “setup” namespace. in Magento2Magento 2: Static files are present but shows 404Why do i have to always run the commands to clean cache in Magento 2.1.8?Failure reason: 'Unable to unserialize value.'Error 500 after magento migrationIn production mode the site does not loadMagento 2 : Error 500 after installing

                                          Middle Expansion Olielle Resaix Definition: Uttering songs of triumph shouting with joy triumphant exulting Sejunction Journal 붙다 달 고급 품목 외출 The stretch trades the screeching tin. Definition: The act of speaking with a drawl a drawl Cough Sand Definition: An uproar a quarrel a noisy outbreak Shake Iron Publicize Horse House Baby 사과 Resaix Flaggy Jelly Temporary Unequaled Puppet A drop in the bucket Shrew 성격 회원 성질 미팅 The burn frames the tacky quality. Materialistic The smoke reduces the way. Yammoe Nondescript Cheek 얼굴 배 약하다 날리다 타다 The illegal country shows the iron. Help Rule Drearien Smoke Teaching Meaty Wasp Abraham Lincoln Jaws 진심 수리하다 Size Cork Idea Convert Think Lark John Lennon 거울 청소 군 추천하다 아이스크림