Page 1 of 4 123 ... LastLast
Results 1 to 10 of 38

Thread: List all installed packages?

  1. #1

    Default List all installed packages?

    Hi, I would like to see a lift of all packages that I have installed. I'd prefer to not include updates in the list, and I'd like to arrange them by date in descending order. Just in case I installed something I forgot about and no longer need.

  2. #2

    Default Re: List all installed packages?

    Quote Originally Posted by Astralogic View Post
    Hi, I would like to see a lift of all packages that I have installed. I'd prefer to not include updates in the list, and I'd like to arrange them by date in descending order. Just in case I installed something I forgot about and no longer need.
    This will show all installed packages with the latest ones at the top:
    Code:
    rpm -qa --last
    For other options (f.e. how to manipulate the list output), see "man rpm".

    If you want the opposite order, you could pipe it through "tac" f.e.:
    Code:
    rpm -qa --last | tac
    Last edited by wolfi323; 25-Feb-2014 at 05:28.

  3. #3

    Default Re: List all installed packages?

    On 02/25/2014 07:26 AM, wolfi323 pecked at the keyboard and wrote:
    > Astralogic;2627073 Wrote:
    >> Hi, I would like to see a lift of all packages that I have installed.
    >> I'd prefer to not include updates in the list, and I'd like to arrange
    >> them by date in descending order. Just in case I installed something I
    >> forgot about and no longer need.

    > This will show all installed packages with the latest ones at the top:
    >
    > Code:
    > --------------------
    > rpm -qa --last
    > --------------------
    >
    >
    > For other options (f.e. how to manipulate the list output), see "man
    > rpm".
    >
    > If you want the opposite order, you could pipe it through "rev" f.e.:
    >
    > Code:
    > --------------------
    > rpm -qa --last | rev
    > --------------------
    >
    >


    Not sure who supplied this script but this is what I use:

    Code:
    rpm -q -a --queryformat "%{INSTALLTIME}\t%{INSTALLTIME:day} \
    %{BUILDTIME:day} %-30{NAME}\t%15{VERSION}-%-7{RELEASE}\t%{arch} \
    %25{VENDOR}%25{PACKAGER} == %{DISTRIBUTION} %{DISTTAG}\n" \
    | sort | cut --fields="2-" | tee rpmlist | less -S
    Ken

  4. #4
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: List all installed packages?

    On 2014-02-25 15:09, Ken Schneider wrote:

    > Not sure who supplied this script but this is what I use:
    >
    >
    Code:
    >
    > rpm -q -a --queryformat "%{INSTALLTIME}\t%{INSTALLTIME:day} \
    >    %{BUILDTIME:day} %-30{NAME}\t%15{VERSION}-%-7{RELEASE}\t%{arch} \
    >    %25{VENDOR}%25{PACKAGER} == %{DISTRIBUTION} %{DISTTAG}\n" \
    >   | sort | cut --fields="2-" | tee rpmlist | less -S
    >
    >


    Heh, that concoction is mine :-)


    This other variant generates a CSV file that can then be imported on any
    calc sheet, where you can then do filtering and sorting:

    Code:
    rpm -q -a --queryformat "%{INSTALLTIME};%{INSTALLTIME:day}; \
    %{BUILDTIME:day}; %{NAME};%{VERSION}-%-7{RELEASE};%{arch}; \
    %{VENDOR};%{PACKAGER};%{DISTRIBUTION};%{DISTTAG}\n" \
    | sort | cut --fields="2-" --delimiter=\; \
    | tee rpmlist.csv | less -S
    --
    Cheers / Saludos,

    Carlos E. R.

    (from 13.1 x86_64 "Bottle" (Minas Tirith))

  5. #5
    Join Date
    Jun 2008
    Location
    Sogndal, Noreg
    Posts
    1,103

    Default Re: List all installed packages?

    I usually pipe it through less:
    Code:
    rpm -qa -last|less
    BTW, what would be the zypper equivalent?
    OpenSuSE 13.1, KDE 4.11.5, 64bit
    Gigabyte 990FXA-UD3, AMD FX8350, MSI GeForce GTX 760, RME HDSP9632, 16GB HyperX Kingston DDR3, Samsung 840-Pro SSD 128GB, WD Desktop Black 1TB, Hitachi Deskstar 7K1000 750GB

  6. #6

    Default Re: List all installed packages?

    Quote Originally Posted by F_Sauce View Post
    BTW, what would be the zypper equivalent?
    Maybe this:
    Code:
    zypper se --installed-only
    Or add "-s" as well to get more details like the version.
    But I don't know how you can let zypper sort the list by installation time (I don't think that's possible).

    For all search options, see "zypper help se".
    Last edited by wolfi323; 25-Feb-2014 at 16:22.

  7. #7

    Default Re: List all installed packages?

    On 02/25/2014 03:44 PM, Carlos E. R. pecked at the keyboard and wrote:
    > On 2014-02-25 15:09, Ken Schneider wrote:
    >
    >> Not sure who supplied this script but this is what I use:
    >>
    >>
    Code:
    >>
    >> rpm -q -a --queryformat "%{INSTALLTIME}\t%{INSTALLTIME:day} \
    >>     %{BUILDTIME:day} %-30{NAME}\t%15{VERSION}-%-7{RELEASE}\t%{arch} \
    >>     %25{VENDOR}%25{PACKAGER} == %{DISTRIBUTION} %{DISTTAG}\n" \
    >>    | sort | cut --fields="2-" | tee rpmlist | less -S
    >>
    >>

    > Heh, that concoction is mine :-)


    I thought so but can't trust my memory much lately.
    Thanks Carlos

    Ken

  8. #8

    Default Re: List all installed packages?

    On 02/25/2014 06:16 PM, wolfi323 pecked at the keyboard and wrote:
    > F_Sauce;2627182 Wrote:
    >> BTW, what would be the zypper equivalent?

    > Maybe this:
    >
    > Code:
    > --------------------
    > zypper se --installed-only
    > --------------------
    >
    > Or add "-s" as well to get more details like the version.
    > But I don't know how you can let zypper sort the list by installation
    > time.
    >
    > For all search options, see "zypper help se".
    >
    >


    Code:
    less /var/log/zypp/history
    Shows install/remove history since (fresh) system install.

    Ken

  9. #9

    Default Re: List all installed packages?

    Is there a way to only show programs that I have manually installed? Can I omit updates and things that came with Suse? Yeah it's gonna be a pretty small list, but I don't want to forget about packages that I installed but no longer need.

  10. #10

    Default Re: List all installed packages?

    Quote Originally Posted by Astralogic View Post
    Is there a way to only show programs that I have manually installed? Can I omit updates and things that came with Suse? Yeah it's gonna be a pretty small list, but I don't want to forget about packages that I installed but no longer need.
    You mean you want to see a list of packages where you downloaded an RPM and installed it manually?

    You can do this in YaST->Software Management, click on "View" and select "Repositories", select the "@System" repo (should be selected by default), and set the Secondary Filter to "Unmaintained Packages". Then only installed packages that are not in any repo are shown.

    Or this zypper line should give the same result:
    Code:
    zypper pa -o
    (pa="List all packages available in specified repositories", -o=--orphaned="Show packages which are orphaned (without repository).")
    You could also specify the "-n" option instead of (or in addition to) "-o", that would "Show packages which are unneeded.", where unneeded means they are not required by any other packages.

    For all the "pa" options, see "zypper help pa"...
    Last edited by wolfi323; 26-Feb-2014 at 04:02.

Page 1 of 4 123 ... LastLast

Posting Permissions

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