site  contact  subhomenews

Alright Ubuntu, where have you hidden them?

December 18, 2008 — BarryK
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.

Comments

Debian Search
Username: Dougal
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

ubuntu search
Username: davesurrey
"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

Thanks
Username: BarryK
"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.

synaptic
Username: davesurrey
"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

aptitude
Username: davesurrey
"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

files
Username: MU
"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

the command line you need ...
Username: jamesbond
"... 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.

searching for files in Debian
Username: Vootie
"[b]dlocate[/b] finds stuff in Debian [i]fast[/i]: [i]# 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 [/i] ...had to use [b]realpath[/b] as well as the plain filenames weren't found otherwise, (symlinks in there somewhere). Needed packages names are [b]dlocate[/b] and [b]realpath[/b].


Tags: woof