~/ learn/ comp-325/ cards/ Three tools on one trade-off
1 of 10

The installed-packages pipeline, refined, and its Red Hat equivalent

The installed-packages pipeline, refined, and its Red Hat equivalent

Answer

dpkg -l | grep -i python dpkg -l | grep -i '^ii.*python' rpm -qa | grep -i python

The pipe makes grep filter dpkg standard output. -i is not optional here: package names appear as python3-, libpython and Python. The middle line also drops removed-but-not-purged entries by anchoring on the ii status column. dpkg is Debian-family only.

Sarwar & Koretsky 3e ch7 §7.6

space flip · ← → navigate · esc to exit
NORMAL ~/memra/library/b5e360a1-18ef-4404-821a-fc70fd14a644/flashcard utf-8 LF