Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

How do I get a list of packages (and their versions) managed by DKMS so I can easily add/remove them?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

I believe the command you're looking for is dkms status. for example:

% dkms status
virtualbox, 4.1.18: added

On another system that has a lot more DKMS modules installed:

% dkms status
fglrx, 8.960, 3.2.0-33-generic-pae, i686: installed
fglrx, 8.960, 3.2.0-34-generic, i686: installed
fglrx, 8.960, 3.2.0-34-generic-pae, i686: installed
fglrx, 8.960, 3.2.0-35-generic, i686: installed
fglrx, 8.960, 3.2.0-35-generic-pae, i686: installed
fglrx, 8.960, 3.2.0-36-generic, i686: installed
fglrx, 8.960, 3.2.0-36-generic-pae, i686: installed
fglrx, 8.960, 3.2.0-37-generic, i686: installed
fglrx, 8.960, 3.2.0-37-generic-pae, i686: installed
fglrx, 8.960, 3.2.0-38-generic, i686: installed
fglrx, 8.960, 3.2.0-38-generic-pae, i686: installed
fglrx, 8.960, 3.2.0-39-generic, i686: installed
fglrx, 8.960, 3.2.0-39-generic-pae, i686: installed
fglrx, 8.960, 3.2.0-40-generic, i686: installed
fglrx, 8.960, 3.2.0-40-generic-pae, i686: installed
vboxhost, 4.1.8, 3.2.0-24-generic, i686: installed
vboxhost, 4.1.8, 3.2.0-24-generic-pae, i686: installed
vboxhost, 4.1.8, 3.2.0-26-generic, i686: installed
vboxhost, 4.1.8, 3.2.0-26-generic-pae, i686: installed
vboxhost, 4.1.8, 3.2.0-27-generic, i686: installed
vboxhost, 4.1.8, 3.2.0-27-generic-pae, i686: installed
vboxhost, 4.1.8, 3.2.0-29-generic, i686: installed
vboxhost, 4.1.8, 3.2.0-29-generic-pae, i686: installed
vboxhost, 4.1.8, 3.2.0-31-generic, i686: installed
vboxhost, 4.1.8, 3.2.0-31-generic-pae, i686: installed
vboxhost, 4.1.8, 3.2.0-32-generic, i686: installed
vboxhost, 4.1.8, 3.2.0-32-generic-pae, i686: installed
vboxhost, 4.1.8, 3.2.0-33-generic, i686: installed
vboxhost, 4.1.8, 3.2.0-33-generic-pae, i686: installed
vboxhost, 4.1.8, 3.2.0-34-generic, i686: installed
vboxhost, 4.1.8, 3.2.0-34-generic-pae, i686: installed
vboxhost, 4.1.8, 3.2.0-35-generic, i686: installed
vboxhost, 4.1.8, 3.2.0-35-generic-pae, i686: installed
vboxhost, 4.1.8, 3.2.0-36-generic, i686: installed
vboxhost, 4.1.8, 3.2.0-36-generic-pae, i686: installed
vboxhost, 4.1.8, 3.2.0-37-generic, i686: installed
vboxhost, 4.1.8, 3.2.0-37-generic-pae, i686: installed
vboxhost, 4.1.8, 3.2.0-38-generic, i686: installed
vboxhost, 4.1.8, 3.2.0-38-generic-pae, i686: installed
vboxhost, 4.1.8, 3.2.0-39-generic, i686: installed
vboxhost, 4.1.8, 3.2.0-39-generic-pae, i686: installed
vboxhost, 4.1.8, 3.2.0-40-generic, i686: installed
vboxhost, 4.1.8, 3.2.0-40-generic-pae, i686: installed

More info on DKMS is here in it's man page.

share|improve this answer
    
You sure have a lot of kernel versions. –  BatchyX Apr 20 '13 at 16:59
    
That's Ubuntu. I do literally no maintenance on it, just apply updates occasionally. Not my main system, it's my wife's. –  slm Apr 20 '13 at 17:02
    
@slm See askubuntu.com/q/89710/6969 on how to easily remove old kernels. –  Lekensteyn Apr 20 '13 at 17:23
    
@Lekensteyn, thanks. –  slm Apr 20 '13 at 21:59

Your Answer

 
discard

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.