List command filtering

asked 2019-03-17 04:38:34 -0500

tarik gravatar image

Peace be upon those who follow guidance,

What are the most performed commands to achieve the following results:

  1. Packages which were expressly installed.
  2. Sort result 1 by installation date.
  3. Packages distributed by the fedora release.
  4. Packages installed as dependencies includes no package duplication.
edit retag flag offensive close merge delete

Comments

1

I choose 3 systems package management:

First goal:

  1. RPM

    rpm -qa

  2. DNF

    sudo dnf history userinstalled

  3. YUM

    yum list --installed

Second goal:

  1. RPM

    rpm -qa --last

    rpm -qa --qf '%{INSTALLTIME} (%{INSTALLTIME:date}): %{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n' | sort -n

  2. DNF

    ?

  3. YUM

    ?

tarik gravatar imagetarik ( 2019-03-18 14:40:42 -0500 )edit

cat /var/log/dnf.rpm.log will answere "when and what" (1+2)

  1. dnf list
  2. thats shown when you enter "dnf update/install .." .. i'm not sure, there is an easy way to reconstruct it from the database. It is possible, if you dig deep enough.
rdtcustomercare gravatar imagerdtcustomercare ( 2019-03-25 15:40:26 -0500 )edit