Page 13 of 14 FirstFirst ... 311121314 LastLast
Results 121 to 130 of 132

Thread: HowTo: Create a list of installed packages

  1. #121
    Join Date
    Sep 2012
    Location
    Gnome12o4/LXQt14o4
    Beans
    Hidden!

    Re: HowTo: Create a list of installed packages

    All your GUI packages should be located in:

    /usr/share/applications

  2. #122
    Join Date
    Feb 2007
    Location
    The Netherlands
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: HowTo: Create a list of installed packages

    Thanks. but I don't mean only GUI. Those are the easiest to remember.

    During the course of a year you find a lot convenient applications, and you use them in your workflow, batch scripts, builds etc.
    For example, image magick, doxygen, pandoc, different video tools.

    I usually go through my list of packages to see if I can leave things out, but it's so annoying to go through a list of two thousand packages when it could be a list of two hundred applications. I'm probably exaggerating here.

    But there are 'father' packages, on which nothing depends. Obviously, in theory it's possible to find out which they are. I am looking for such a way.
    Windows 7 for Media Production, Ubuntu 12.04/Cinnamon for other work.
    Xubuntu 12.04 as Media Center, CentOS 5.6 as server.
    Linux Mint on my casual laptop, Maemo 5 on my Nokia N900.

  3. #123
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: HowTo: Create a list of installed packages

    With aptitude you can get top level only. But not for reinstall directly.

    Top level only - no depends (not for reinstall)
    sudo apt-get install aptitude
    aptitude --disable-columns -F '%p' search '~i!~M!~R(~i)' > toplevel
    or
    aptitude search '?installed ?not(?reverse-depends(?installed))'

    Alternative way with aptitude:
    aptitude --display-format '%p' search '?installed!?automatic' > ~/my-packages
    sudo xargs aptitude --schedule-only install < my-packages
    sudo aptitude install

    Top level applications:
    aptitude --disable-columns -F 'no_dependents %p' search '~i!~M!~R(~i)'
    sudo aptitude --disable-columns -F '%p' search '~i!~M!~R(~i)' >toplevelonly
    aptitude --disable-columns -F 'no_dependents %p' search '~i!~M!~R(~i)'
    Oldfred on vacation. Back Sept 9. Will not have much if any Internet access.
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







  4. #124
    Join Date
    Feb 2007
    Location
    The Netherlands
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: HowTo: Create a list of installed packages

    This is golden:
    Code:
    aptitude --disable-columns -F '%p' search '~i!~M!~R(~i)'
    Thank you.

    But what do you mean by this?
    no depends (not for reinstall)
    Depends will automatically be installed, or the top level package won't be installed. Maybe this would actually be a safer way to reinstall those packages otherwise you might install dependency libraries and older libraries that were dependencies for an older version (when one generated the list).
    Windows 7 for Media Production, Ubuntu 12.04/Cinnamon for other work.
    Xubuntu 12.04 as Media Center, CentOS 5.6 as server.
    Linux Mint on my casual laptop, Maemo 5 on my Nokia N900.

  5. #125
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: HowTo: Create a list of installed packages

    It just is a list without depends, but the list itself cannot directly be used to reinstall just the top level apps. Yes depends will then correctly be included.
    I have seen some posts on using grep to parse a file to get just the needed file list in the proper format for dpkg to reinstall, but did not save it.
    It looks like it just is the app, and you need the second parameter if using dpkg.
    Last edited by oldfred; November 5th, 2013 at 08:03 PM.
    Oldfred on vacation. Back Sept 9. Will not have much if any Internet access.
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







  6. #126
    Join Date
    Jul 2012
    Beans
    315
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: HowTo: Create a list of installed packages

    I find this works for me
    Code:
    cat /var/log/dpkg.log | grep " \install\ "
    and see here: http://ubuntuforums.org/showthread.php?t=1952639
    The best things in life are free, so what are we paying for?

  7. #127
    Join Date
    Feb 2007
    Location
    The Netherlands
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: HowTo: Create a list of installed packages

    Quote Originally Posted by oldfred View Post
    the list itself cannot directly be used to reinstall just the top level apps.
    If you mean the newlines, it's rather trivial. This will work:
    Code:
    sudo apt-get install `cat packages.toplevel.list | tr '\n' ' '`
    Windows 7 for Media Production, Ubuntu 12.04/Cinnamon for other work.
    Xubuntu 12.04 as Media Center, CentOS 5.6 as server.
    Linux Mint on my casual laptop, Maemo 5 on my Nokia N900.

  8. #128
    Join Date
    Apr 2006
    Beans
    236

    Re: HowTo: Create a list of installed packages

    I had created this thread a long time ago and basically forgot about it, which is why I hadn't replied to any of the questions here. I'm kind of amazed it grew so large and is still useful to people. It makes me very happy to read through all the comments about how it saved people half a days work. Anyway I was a far less experienced Linux user during that time so I didn't think to mention any caveats about using sudo or that it copies all packages, I was just excited to find something that worked for me. Cheers all.

  9. #129
    Join Date
    Dec 2007
    Location
    Bombay
    Beans
    5,732
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: HowTo: Create a list of installed packages

    Quote Originally Posted by Cynical View Post
    I had created this thread a long time ago and basically forgot about it, which is why I hadn't replied to any of the questions here. I'm kind of amazed it grew so large and is still useful to people. It makes me very happy to read through all the comments about how it saved people half a days work. Anyway I was a far less experienced Linux user during that time so I didn't think to mention any caveats about using sudo or that it copies all packages, I was just excited to find something that worked for me. Cheers all.
    And thank you for "bumping" it. I had forgotten all about it but will now bookmark it very securely

  10. #130

    Re: HowTo: Create a list of installed packages

    hello this thread is good but perhaps not so good for me!
    I have created installed-software but when i try to install them on fresh ubuntu 14.04 alot of dpkg-errors happen!
    for example:
    dpkg: warning: package not in database at line 1638: xtrans-dev
    dpkg: warning: package not in database at line 1652: zlib1g:i386
    dpkg: warning: package not in database at line 1652: zlib1g-dev:amd64

    how to resolve this?

Page 13 of 14 FirstFirst ... 311121314 LastLast

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
  •