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
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
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
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