Alright Ubuntu, where have you hidden them?

I give up. I tried to find them. My Woof is supposed to have some Xorg locale files at /usr/share/X11/locale, but doesn't. I booted Xubuntu, and yep, there they are. I searched through all of Ubuntu's Xorg packages that seemed remotely likely, did a lot of hunting with Google... nothing.

Any Debian/Ubuntu expert reading this? I think that if running Debian/Ubuntu, you can query what package has a particular filename, but I don't know how to do that. For example, there are these files in /usr/share/X11/locale:

locale.dir compose.dir locale.alias

Puppy4 (and all earlier puppies) has them at /usr/X11R7/share/X11/locale.

Note, I currently have Woof set to glibc's en_US.utf8.


Posted on 18 Dec 2008, 17:10


Comments:

Posted on 18 Dec 2008, 18:35 by Dougal
Debian Search
I tried a Debian search for package contents for "/usr/share/X11/locale/locale.alias" and got:
http://packages.debian.org/etch/libx11-data
and it seems to exist in Ubuntu:
http://packages.ubuntu.com/intrepid/libx11-data


Posted on 18 Dec 2008, 19:55 by davesurrey
ubuntu search
Barry,
FWIW I looked up my Ubuntu 8.10 install and it confirms libx11-data "provides the locale data for libx11" and says the module can be found at
git://anongit.freedesktop.org/git/xorg/lib/libX11
Dave


Posted on 19 Dec 2008, 7:47 by BarryK
Thanks
Thanks guys!

Er, how did you actually "look up" that information? My understanding, from something I read recently, was that you have to do it on the commandline.


Posted on 19 Dec 2008, 8:55 by davesurrey
synaptic
I am sure you are aware that the GUI front end for apt, the debian package management tool, is Synaptic. On my ubuntu 8.10 install I searched for locale, found the relevant package in Synaptic and then right clicking on it I get Properties which gives me tabs for Common (general stuff), Dependencies, Installed files, Version, and Description.

FWIW I have tried many distros and found that the debian package system is one of the very best.
Hope that answers the question.

Don't know any command line way to get the info.

Hope that answers the question and if I can help more just ask.

By the way sorry for delay in reply but I have never managed to reply to this blog using anything other than Seamonster.
Cheers
Dave


Posted on 19 Dec 2008, 10:27 by davesurrey
aptitude
Well if you prefer to use command line then there is a command line front end to apt called aptitude that will give you some info of the packages via search.

Alternatively you could use apt-cache for searching which has the syntax:
apt-cache search package-you-seek
or
apt-cache -n search package-you-seek if you don't want to search descriptions just names of packages.

Also
apt-cache showpkg package-you-seek to give you details.
Think you need to be a super-user for all of this.

Apologies if you know all this already.
2.20am so time for bed
Dave


Posted on 19 Dec 2008, 13:21 by MU
files
you can search for filenames at bottom of http://packages.debian.org

To browse the ftp-server with ubuntu packages, I use this URL:
http://ftp5.gwdg.de/pub/linux/debian/ubuntu/pool/
There also sources can be found.
Mark


Posted on 19 Dec 2008, 15:14 by jamesbond
the command line you need ...
... is dpkg-query -S filespec, as in, for example:
dpkg-query -S "/usr/share/X11/locale/en_US.UTF-8"

That is, if you want to find it through command-line :)

Note: this only works for already installed packages.



Posted on 22 Dec 2008, 15:24 by Vootie
searching for files in Debian
dlocate finds stuff in Debian fast:

# for f in `realpath /usr/share/X11/locale/{locale.*,compose.dir}`; do dlocate "$f" ; done
libx11-data: /usr/share/X11/locale/locale.alias
libx11-data: /usr/share/X11/locale/locale.dir
libx11-data: /usr/share/X11/locale/compose.dir


...had to use realpath as well as the plain filenames weren't found otherwise, (symlinks in there somewhere). Needed packages names are dlocate and realpath.


Posted on 3 Jan 2009, 7:51 by Robin Rowe
Use apt-file
http://www.debuntu.org/how-to-find-missing-packages-with-apt-file