Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Possible Duplicate:
How do I find the package that provides a file?

My mount utility doesn't support ext4, so I plan to update it. How to determine which package contain an app, such as mount?

sudo apt-get install

share|improve this question
add comment

migrated from stackoverflow.com May 20 '11 at 2:50

This question came from our site for professional and enthusiast programmers.

marked as duplicate by Jorge Castro, Oli May 20 '11 at 10:08

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

3 Answers

sudo apt-get install apt-file
sudo apt-file search <filename>

What version of ubuntu are you using? If the kernel supports ext4, mount should!

Make sure you're using the correct syntax

mount -t ext4 /dev/sdax /dir

if its a currently installed package (which mount is), you can also do

dpkg -S /bin/mount
share|improve this answer
    
Thanks, but it fails: $ sudo apt-file search mount sudo: apt-file: command not found $ sudo cat /proc/version Linux version 2.6.24-24-generic (buildd@palmer) (gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu4)) #1 SMP Tue Jul 7 19:46:39 UTC 2009 –  soul2003 May 20 '11 at 2:33
    
It seems no apt-file command. –  soul2003 May 20 '11 at 2:34
    
you need to install apt-file first, sudo apt-get install apt-file –  freethinker May 20 '11 at 2:36
    
however in your case, dpkg -S should work –  freethinker May 20 '11 at 2:36
    
Thank you. It works now. –  soul2003 May 20 '11 at 2:43
show 2 more comments
http://packages.ubuntu.com/

Enter "ext4" and click on Description and search. You will soon see that you should have e2fsprogs installed to have full ext4 support (mostly fsck). The kernel controls whether you can mount, though.

share|improve this answer
add comment

First, direct answer to your question:

dpkg -S will return a list of all packages which have files matching that string. You probably want to pass the full path (which you can using which)

which mount -> /bin/mount dpkg -S /bin/mount -> mount

Also, apt-cache search ext4 will return all of the packages which use ext4. I'd expect you're more likely to need to update e2fsprogs than mount

share|improve this answer
add comment