Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

A bit of background, feel free to skip this paragraph if you don't care. I have a bit of academic experience with linux and unix from college but I'm still somewhat of a n00b because I was always a windows guy. Recently, I decided that I want to switch from Windows to Linux for my main OS on my home computers. I'm trying to create a minimalist debian install for my netbook. I have a clonezilla restore point that I made right after a fresh minimal debian install.

I do not have any packages other than what debian installs automatically during a minimal install. I deselected everything in taskel (no desktop environment, nothing). So consider that as my start point for what I am about to ask...

I want to install some packages. Since I am creating a minimalist install, I want to always use "sudo apt-get --no-install-recommends ". Is there a way that I can create like a custom abbreviated command for this? Or is there a way that I could say copy and paste a bunch of those commands into a text document and then run them all sequentially using one command? Do you know of a simpler, more elegant way to accomplish running a bunch of packages installs from a freshly installed minimal command prompt?

PS: I tried googling and searching but I'm still enough of a n00b that I don't know exactly what to google for to find what I need... Any other advice would be greatly appreciated.

share|improve this question

2 Answers 2

You can configure apt via apt.conf files.

Here is a command I use on my server (as root):

cat > /etc/apt/apt.conf.d/01norecommend << EOF
APT::Install-Recommends "0";
APT::Install-Suggests "0";

To see if apt reads this, enter this in command line (as root or regular user):

apt-config dump | grep Recommends
share|improve this answer
If apt-config dump says your line is ignored, it could be because another file in this directory (find it with grep), say 99synaptic, overrides it, in which case you'll want to edit that file, or rename 01norecommend by increasing the leading number so it is read later. –  Marc Glisse Jan 21 '14 at 7:31
And after I added the configuration for not installing recommended packages, is there a way to change this setting for one run of apt-get install? –  andrybak Mar 26 at 21:30

The easiest way to do this would be to make apt-get an alias to apt-get --no-install-recommends. Add this line to /etc/bash.bashrc:

alias apt-get='apt-get --no-install-recommends'
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.