0

What is the apt-get equivalent of the following command?

aptitude -r install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') <package name>

Thanks.

3
apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') <package name>

For the record, this just installs the linux headers (likely, linux-headers-generic) and any additional packages you specify.

  • Thanks for your answer. What does -r mean as in aptitude -r? – n00b Mar 19 '14 at 23:55
  • It installs any packages listed as "Recommends" as well (it treats them like dependencies). It's default in apt-get, not sure about aptitude. – saiarcot895 Mar 19 '14 at 23:57

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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