Results 1 to 6 of 6

Thread: A command to list installed hand-rolled programs.

  1. #1
    Join Date
    Jul 2006
    Location
    Lancashire
    Beans
    Hidden!
    Distro
    Ubuntu 11.04 Natty Narwhal

    Smile A command to list installed hand-rolled programs.

    This is my attempt.


    Patches are welcome.


    Code:
    echo "Package                               Version" > packages.txt && \
    echo "-------                               -------" >> packages.txt && \
    dpkg -l | grep -i 'Package created with checkinstall' | cut -c 5- | sed 's/-1//' \
    | sed 's/Package created with checkinstall 1.6.*//' >> packages.txt
    Attached Files Attached Files

  2. #2
    rai4shu2 is offline Extra Foam Sugar Free Ubuntu
    Join Date
    Jun 2006
    Beans
    Hidden!
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: A command to list installed hand-rolled programs.

    Wow. VLC from source must have been fun.

    That script doesn't work on my system since I like to use the proper descriptions. I just go into Synaptic and select "Origin" and then "Local" if I want to see a list of stuff I've installed locally.

  3. #3
    Join Date
    Jul 2006
    Location
    Lancashire
    Beans
    Hidden!
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: A command to list installed hand-rolled programs.

    Quote Originally Posted by rai4shu2 View Post
    That script doesn't work on my system since I like to use the proper descriptions.
    Ha, fortunately Checkinstall leaves it's message when the description field is left blank.

    I started off trying to make dpkg list programs from Status > Installed Local.
    And your suggestion Origin > Local is a similar idea.
    But it defeated me.

    Are you working on it now?

  4. #4
    rai4shu2 is offline Extra Foam Sugar Free Ubuntu
    Join Date
    Jun 2006
    Beans
    Hidden!
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: A command to list installed hand-rolled programs.

    I'm not working at all right now. But if I were to do something like what you're trying to do, I'd look into maybe using xapian-tools or something like that.

  5. #5
    Join Date
    Jul 2006
    Location
    Lancashire
    Beans
    Hidden!
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: A command to list installed hand-rolled programs.

    Hi

    It seems the data is in file var/lib/dpkg/status
    And also in file var/lib/dpkg/available

    Is it possible to access the data to list package name and version
    something like this....
    cat /var/lib/dpkg/status | ......


    The hand-rolled programs show "Section: checkinstall"
    Like this:-



    Package: vlc
    Status: install ok installed
    Priority: extra
    Section: checkinstall
    Installed-Size: 59732
    Maintainer: root@ubuntu
    Architecture: i386
    Version: 2.1.0+git20120406-1
    Provides: vlc
    Description: Package created with checkinstall 1.6.1
    Last edited by ron999; May 19th, 2012 at 11:32 PM. Reason: And also in file var/lib/dpkg/available

  6. #6
    Join Date
    Nov 2005
    Location
    Bordeaux, France
    Beans
    11,297
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: A command to list installed hand-rolled programs.

    Checkinstall is for wimps.
    「明後日の夕方には帰ってるからね。」


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
  •