0

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

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

Thanks.

1 Answer 1

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.

2
  • Thanks for your answer. What does -r mean as in aptitude -r?
    – n00b
    Mar 19, 2014 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. Mar 19, 2014 at 23:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .