tag:blogger.com,1999:blog-6637736252081011583.post2022821503594025970..comments2023-10-23T11:13:47.199-07:00Comments on Daily Vim: Text Editor Tips, Tricks, Tutorials, and HOWTOs: Finding a File's OwnerTravis Whittonhttp://www.blogger.com/profile/14592647486468034166noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-6637736252081011583.post-46802251484605479862008-04-30T07:16:00.000-07:002008-04-30T07:16:00.000-07:00Thanks Steve. Good to know!Thanks Steve. Good to know!Travis Whittonhttps://www.blogger.com/profile/14592647486468034166noreply@blogger.comtag:blogger.com,1999:blog-6637736252081011583.post-76842643706903275472008-04-25T14:59:00.000-07:002008-04-25T14:59:00.000-07:00I don't know how dlocate differs from dpkg -S, but...I don't know how dlocate differs from dpkg -S, but I've always used the former to find which package owns files that are currently installed on the system.<BR/><BR/>Apt-file is useful if the package isn't actually installed yet. If, for instance, some badly-behaved app (likely a non-Debian one) says that it tried and failed to find /path/to/foo, you do<BR/><BR/>sudo apt-file update<BR/>sudo apt-file search /path/to/fooSteve Lanielhttps://www.blogger.com/profile/15382641193477770243noreply@blogger.comtag:blogger.com,1999:blog-6637736252081011583.post-51185848022325570442008-04-21T21:14:00.000-07:002008-04-21T21:14:00.000-07:00While I wouldn't be a fan of redhat/suse type dist...While I wouldn't be a fan of redhat/suse type distro's (debian/ubuntu would be my preference)<BR/>it is possible to do the same thing with rpm:<BR/><BR/> rpm -q --whatprovides /bin/bash<BR/><BR/>You'd probably be rather surprised what your package manager can do for you.<BR/><BR/>- bobbAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6637736252081011583.post-83645791580930623902008-04-21T07:24:00.000-07:002008-04-21T07:24:00.000-07:00Didn't know about apt-file. Very cool. I haven't h...Didn't know about apt-file. Very cool. I haven't had any experience with Arch Linux, but I'll check it out.Travis Whittonhttps://www.blogger.com/profile/14592647486468034166noreply@blogger.comtag:blogger.com,1999:blog-6637736252081011583.post-85935466276054810072008-04-19T14:30:00.000-07:002008-04-19T14:30:00.000-07:00Awesome, I never looked at the dpkg manpage closel...Awesome, I never looked at the dpkg manpage closely enough to know this! Look s like this is the best way to find what *installed* package a file belongs too.<BR/><BR/>In the past I've historically used apt-file. I guess apt-file here would be able to tell you what packages provide a file.<BR/><BR/>$ apt-file search filenameAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6637736252081011583.post-80082775880031551872008-04-18T20:05:00.000-07:002008-04-18T20:05:00.000-07:00same function for pacman (Archlinux): pacman -Qo /...same function for pacman (Archlinux): pacman -Qo /path/to/fileAnonymousnoreply@blogger.com