mirror of
https://github.com/SinTan1729/random.git
synced 2024-12-25 20:58:37 -06:00
Added support for dnf
This commit is contained in:
parent
95811c903b
commit
a00d1e7e32
1 changed files with 1 additions and 1 deletions
|
@ -11,6 +11,7 @@ mkdir -p $DIR
|
||||||
|
|
||||||
# list and save system packages
|
# list and save system packages
|
||||||
command -v pacman &> /dev/null && pacman -Qq > $DIR/pacman
|
command -v pacman &> /dev/null && pacman -Qq > $DIR/pacman
|
||||||
|
command -v dnf &> /dev/null && dnf list installed > $DIR/dnf
|
||||||
|
|
||||||
# list and save pip packages
|
# list and save pip packages
|
||||||
command -v pip &> /dev/null && pip list | awk '{print $1}' | tail -n +3 > $DIR/pip
|
command -v pip &> /dev/null && pip list | awk '{print $1}' | tail -n +3 > $DIR/pip
|
||||||
|
@ -18,4 +19,3 @@ command -v pip &> /dev/null && pip list | awk '{print $1}' | tail -n +3 > $DIR/p
|
||||||
# list and save pipx packages
|
# list and save pipx packages
|
||||||
command -v pipx &> /dev/null && pipx list | grep package | awk '{print $2}' > $DIR/pipx
|
command -v pipx &> /dev/null && pipx list | grep package | awk '{print $2}' > $DIR/pipx
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue