Debian Planet










Welcome to Debian Planet

Search

Apt-get into it.
Main Menu

  • Home

  • Topics

  • Web Links

  • Your Account

  • Submit News

  • Stats

  • Top 10

  • Debian

    These are important Debian sites one should not be without!

  • Official Debian site

  • Package search

  • Mailing list archives

  • Bug reports

  • Debian on CD

  • Unofficial woody CD ISOs

  • Unofficial APT sources

  • Developers' Corner

    Other great Debian news sources:

  • Debian Weekly News

  • Kernel Cousin Debian

    (Debian mailing lists digested)
  • Community Groups

    Need help? You're not alone on this planet.

  • debianHELP

    (User support site)

  • Debian International

  • DebianWorld

    (Français)

  • DebianForum.de

    (Deutsch)

  • EsDebian

    (Español)

  • Debian-BR

    (Português)

  • DebianUsers

    (Korean)

  • MaximumDebian

    (Italiano)

  • IRC

    The place to get help on a Debian problem (after reading docs) or to just chat and chill is #debian on irc.debian.org.

    Many of the Debian Planet staff live there so pop by and say hello.

    Wanna write?

    Got that latest or greatest scoop? Perhaps you have some important news for the Debian community? Submit a news item!

    Or perhaps you've written a rather ground breaking insight into some aspect of Debian and you feel compelled to share it with others? Knock up a longer editorial article and send it to the editors.

    Sponsorship

    DP is sponsored by uklinux.net and CheepLinux.

    Debian Planet runs on hardware donated by Xinit systems and is using kieser.net's bandwidth.

    Who's Online

    There are currently, 69 guest(s) and 8 member(s) that are online.

    You are Anonymous user. You can register for free by clicking here.

      
    How do I find the package that contains a certain file?
    Contributed by Anonymous on Monday, September 10 @ 22:48:43 BST

    Linux
    Currently there must be a broken dependency in sid. I'm trying to uninstall kdm but it fails since it can't find the command 'cleanup'. So I need to find the package that contains this command. Which leads to a more general question.

    How does one find out the package you need to install when you need a certain file?

    DanielS: Um, epic4 irc.openprojects.net, /j #debian, /m apt find cleanup? If you have it installed, it's dpkg -S, but I believe there's no way if it's not installed, other than asking apt.

     
    Related Links

  • More about Linux
  • News by DanielS

    Most read story about Linux:
    Quickstart guide to kernel-package

    Last news about Linux:

    Printer Friendly Page  Send this Story to a Friend
  • "How do I find the package that contains a certain file?" | Login/Create Account | 22 comments
    Threshold


    The comments are owned by the poster. We aren't responsible for their content.

    http://packages.debian.org (Score: 2, Informative)
    by marm on Monday, September 10 @ 23:11:49 BST
    (User Info)

    Point your web browser at the above address and you should be able to find out everything you need to know 🙂

    Although the only command called 'cleanup' in sid appears to be part of postfix, so I have no idea what on earth kdm is trying to do with it... I'm scratching my head.

    Ask on debian-kde@lists.debian.org and the gurus should be able to tell you...

    [ Reply ]


    Re: How do I find the package that contains a certain file? (Score: 2, Interesting)
    by Integral on Monday, September 10 @ 23:13:21 BST
    (User Info)

    You could try installing auto-apt and using 'auto-apt search'.

    Daniel

    [ Reply ]


    Re: How do I find the package that contains a certain file? (Score: 0)
    by Anonymous on Tuesday, September 11 @ 04:14:33 BST

    I actually had a similiar problem with uninstalling kdm-krb in sid.

    I got this error:

    Removing kdm-krb ...

    /var/lib/dpkg/info/kdm-krb.prerm: message: command not found

    dpkg: error processing kdm-krb (--remove):

     subprocess pre-removal script returned error exit status 127

    /var/lib/dpkg/info/kdm-krb.postinst: cleanup: command not found

    dpkg: error while cleaning up:

     subprocess post-installation script returned error exit status 127

    I email the maintainer and got this reply

    remove the set -e from the script for now

    I didn't know what that meant so I just ended up reinstalling debian

    [ Reply ]


    Re: How do I find the package that contains a certain file? (Score: 1)
    by Desdicardo on Tuesday, September 11 @ 04:39:16 BST
    (User Info)

    Since the comments mentioned that you can ask apt I did some poking around the man pages. I found this command:

    apt-cache search [regex]

    Unfortunately it only searches package names and descriptions. It does not include actual files contained by the packages. I thought I would post it anyway since this takes care of 80% of the searching I currently do with the web site.

    [ Reply ]


    Re: How do I find the package that contains a certain file? (Score: 0)
    by Anonymous on Tuesday, September 11 @ 06:17:21 BST

    um, there is the web search utility on http://www.debian.org/distrib/pacakges

    i use it all the time to find a certain file in a package; i thought everyone knew this:) use the "search the contents of the latest release" search box to find the particular file. use the "search packages directories" to see if a certain package exits in your flavor of debian. as for the kdm problem, just comment out the cleanup line in the kdm.postinst file or whatever one it was that was giving you the problem. that's what i did and it worked for me.

    [ Reply ]


    I, Too, Cannot Remove kdm, Suggestions? (Score: 0)
    by Anonymous on Tuesday, September 11 @ 07:27:17 BST

    Well, I thought I had been going crazy for the best couple of weeks. No matter what I try, I cannot get kdm removed. And, gdm will not install until kdm is gone.

    One message suggested reinstalling debian? Well, I don't think that is advice I will follow. Any suggestions from someon who had problems and successfully removed kdm removed? Thanks.

    [ Reply ]


    Re: How do I find the package that contains a certain file? (Score: 0)
    by Anonymous on Tuesday, September 11 @ 08:40:06 BST

    I have made little perl script that uses

    the web-interface. http://ytti.fi/find_deb it's handy in metiond situations.

    [ Reply ]


    Re: How do I find the package that contains a certain file? (Score: 1)
    by MarsDude on Tuesday, September 11 @ 09:09:01 BST
    (User Info) http://www.marsdude.com

    I've gone from 2.2r0 to 2.2r3 and everything is working great... X 3.3.6 kernel 2.2.19

    Also installed KDE with an extra apt source (not officially supported as you might know).

    Now I thought that it would've been a nice idea to try ximian gnome... added them to the sources.list as well. Now when I try to do an apt-get install task-ximian-gnome (or something like that) It wants to remove the following : xdm kdm and ... task-x-window-system !!!

    Was able to remove kdm but when doing the same for xdm, apt complains (when trying to install ximian-gnome) that there is something broken... when reinstalling xdm, I can go ahead, but it will remove xdm and the task-x-window-system.

    Anybody have a solution ???

    thanx

    [ Reply ]


    Re: How do I find the package that contains a certain file? (Score: 2, Informative)
    by owen on Tuesday, September 11 @ 12:22:12 BST
    (User Info)

    try downloading the file

    ftp.*.debian.org/debian/dists/*/Contents-*.gz

    (*1=country code; *2=stable/testing/unstable; *3=arch)

    This file crossreferences every file in the distribution to the package that contains it... or that is my understanding at least!

    Alex Owen

    [ Reply ]


    Based on: PHP-Nuke

    All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © 2000 by Debian Planet

    You can syndicate our news using the file backend.php.