On Thu, Sep 21, 2017 at 1:57 PM, Joachim Backes <joachim.backes@xxxxxxxxxxxxxx> wrote:
Line formatting in dnf commandOn 09/21/17 18:59, Terry Polzin wrote:
On Thu, Sep 21, 2017 at 12:45 PM, Richard Shaw <hobbes1069@xxxxxxxxx <mailto:hobbes1069@xxxxxxxxx>> wrote:
On Thu, Sep 21, 2017 at 11:37 AM, Jeffrey Ross <jeff@xxxxxxxxxx
<mailto:jeff@xxxxxxxxxx>> wrote:
How can I obtain a list of all packages currently installed on
the system?
Don't need dnf...
$ rpm -qa
Which will likely be a lot, you can pipe to less to scroll or dump
into a file for grepping or later use:
$ rpm -qa | less
$ rpm -qa > installed.txt
dnf list installed
Oops:
dnf list installed|wc -l
3991
rpm -qa|wc -l
3840
Why this difference??
Joachim Backes
--
Fedora release 26 (Twenty Six)
Kernel-4.12.14-300.fc26.x86_64
Try this
dnf list --installed | awk -F" " ' { print $1 }' | grep -v @ |wc -l
_______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx