Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: apt-get find?

  1. #1
    Join Date
    Jun 2008
    Location
    UK
    Beans
    266
    Distro
    Kubuntu 12.04 Precise Pangolin

    apt-get find?

    I'm normally a Kubuntu user and use adept for my package installation. One of the reasons for using this is the ability to find a package simply by typing all or part of the name into a search box. Unfortunately with KDE 4 adept is a dead duck - no longer so easy to use, and development has terminated, to boot. So as I normally use the command line for most things I think it's about time I got to grips with apt-get ... except there doesn't seem to be a way of saying "list all packages"; "list all installed packages"; "list all packages where the name or description match this".

    Is there an option to apt-get to get this functionality? Or a sister-application to get this info? Alternatively where is the information kept so I could just list the information manually? E.g. "grep -i package /path/to/list"

    Yes, I've read the fine manual page, and I've read the /usr/share/doc/ documentation and I'm still non-the-wiser.

    Andrew

  2. #2
    Join Date
    Jan 2008
    Beans
    1,336

    Re: apt-get find?

    In debian I always search with aptitude and install/remove with apt-get

  3. #3
    Join Date
    Sep 2007
    Location
    England
    Beans
    1,103

    Re: apt-get find?

    apt-cache search foo

  4. #4
    Join Date
    Jul 2006
    Location
    Here
    Beans
    9,860

    Re: apt-get find?

    "apt-cache search " is to search

    "dpkg -l | grep " is used to check if its installed


    set yourself some alias's of the commands.
    here's mine:

    Code:
    alias !='sudo'
    alias u='sudo upgrade-system'
    alias i='sudo apt-get install --no-install-recommends'
    alias r='sudo apt-get remove --purge'
    alias s='apt-cache search'
    alias ?='dpkg -l | grep'
    alias ch='clear;rm -f ~/.bash_history;history -c'
    ps: "upgrade-system" is a package: sudo apt-get install upgrade-system
    Last edited by kerry_s; October 1st, 2009 at 10:59 AM.

  5. #5
    Join Date
    Nov 2005
    Location
    NEK Vermont
    Beans
    Hidden!
    Distro
    Ubuntu UNR

    Re: apt-get find?

    also
    Code:
    dpkg --get-selections
    or write to a file in your home:
    Code:
    dpkg --get-selections > package-list

  6. #6
    Join Date
    Jun 2008
    Location
    UK
    Beans
    266
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: apt-get find?

    Thanks - this is the sort of thing I was looking for. Apt-cache looks like the app to find all packages, installed or not. But I couldn't find a way to list the full description of a non-installed application. It's late - I'll sleep on it.

    Andrew

  7. #7
    Join Date
    Jul 2006
    Location
    Here
    Beans
    9,860

  8. #8
    Join Date
    Dec 2007
    Location
    California
    Beans
    4,900
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: apt-get find?

    just fyi no need to use sudo with apt-cache search, it can be done as a regular user.
    "You can't expect to hold supreme executive power just because some watery tart lobbed a sword at you"

    "Don't let your mind wander -- it's too little to be let out alone."

  9. #9
    credobyte is offline Iced Blended Vanilla Crème Ubuntu
    Join Date
    Jun 2009
    Beans
    1,559
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: apt-get find?

    Code:
    sudo aptitude search <string>
    Unless you are too lazy to check the symbol before each packages name/description ( i - installed ), this is pretty much all you need

  10. #10
    Join Date
    Jul 2006
    Location
    Here
    Beans
    9,860

    Re: apt-get find?

    Quote Originally Posted by jerome1232 View Post
    just fyi no need to use sudo with apt-cache search, it can be done as a regular user.
    my bag, corrected. you just get so use to sudo.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •