You are not logged in.
Hey everyone, so I'm not sure how well known this is ( I suspect that you all may know about this) but I'm always curious as to finding out what files belong to what processor or package. For example if I take a tour of the /etc/ directory, it often becomes (to my untrained eye) a melting pot of different files and directories. Then in each directory like, /etc/X11 it further gets confusing. For example, I wasn't sure if the program xrdb was installed by X11 or Openbox. Well I came across the handy dandy utility... apt-file!
So here's an example of it's amazi-awesomeness:
root@bunsen:/etc/X11# apt-file find /usr/bin/xrdb
X11-xserver-utils: /usr/bin/xrdb
So I can see it was install by X11! (big surprise) but seriously, I can now go through directories and find out their parent packages!
The only problem is that it matches by pattern. So if you search for a file whose name just so happens to appear in other packages, you'll get some misdirects. for example:
In the above I searched 'apt-file find /etc/X11/Xsession
The output (which I truncated, it returned around 25 other files), returns all files that have the term Xsession attached, like /usr/share/doc/sysprofile/examples/etc/X11/Xsession.sample
I didn't want to see the parent package for that! But this isn't really an issue, either with things like grep, regex or just staring long enough, you can find the the file that you specified...in my case it's /etc/X11/Xsession. On the image above it's the 5th line down. And it says, well look at that, installed by X11 as well! I wouldn't have thunk it!
Anyway I'm off to see what else I can find and trace back to it's primordial source code soup.
"I have not failed, I have found 10,000 ways that will not work" -Edison
Offline
Nice find, thanks Horizon_Brave
I didn't know about this one, it appears to be the Debian equivalent of pkgfile in Arch 8)
The ArchWiki has a "Pacman Rosetta" that lists several useful package management options for a wide variety of distributions, including Debian:
https://wiki.archlinux.org/index.php/Pacman/Rosetta
Offline
That's a cool one. Thanks for sharing, Horizon_Brave.
Same for you, HoaS. Link bookmarked.
Offline
bookmarked indeed.
very useful cross-distro table.
Offline
yay, I contributed something useful without asking multiple questions!
"I have not failed, I have found 10,000 ways that will not work" -Edison
Offline