[NTLUG:Discuss] Re: A few Debian questions

Graham Wilson bob at decoy.wox.org
Tue Jun 15 12:03:39 CDT 2004


On Tue, Jun 15, 2004 at 10:39:09AM -0500, Courtney Grimland wrote:
> 1) Where does the 'fortune' program get installed?  I've apt-get'ed
> fortunes, fortune-mod, fortunes-off, and I can't seem to find where it
> put the actual fortune binary.

/usr/games/fortune

> 2) Is there a way, either with apt-cache or dpkg, to list what files
> will be installed from a given package, and where they will go?  I'm
> looking for something analogous to "rpm -ql <name>" or "rpm -qlp
> <filename>".

I've never used an RPM-based distro, so I am not sure what those do, but
I think apt-file is what you are looking for. It will list which files
are in an un-installed package, or match a filename with a package
(which might be uninstalled).

If you already have the Debian package downloaded, you can do the
following:

 $ dpkg -c foo.deb

> 4) I'm looking to have xscreensaver start like this:
> http://www.jwz.org/xscreensaver/man1.html#8
> but I don't understand how to do it in the proper Debian way.  There is
> no /usr/lib/X11/xdm/Xsetup file.  Do I create it?  Has it been renamed
> or merged with another file?

I think what you'll want to do is to create /etc/X11/xdm/Xsetup as a
shell script and add the commands there. I don't use xdm though, so I
can't be positive.

-- 
gram



More information about the Discuss mailing list