pkg: moved package lists to a .pkg folder
parent
1046451d6f
commit
ddb8574a45
|
@ -3,14 +3,23 @@
|
||||||
.cache
|
.cache
|
||||||
.dbus
|
.dbus
|
||||||
.fontconfig
|
.fontconfig
|
||||||
|
.gimp*
|
||||||
|
.lesshst
|
||||||
.local/share/Trash
|
.local/share/Trash
|
||||||
.local/share/Icons
|
.local/share/icons
|
||||||
|
.local/share/dwb
|
||||||
|
.local/share/newsbeuter
|
||||||
|
.local/share/mime/*
|
||||||
.local/share/applications/wine*
|
.local/share/applications/wine*
|
||||||
.local/share/webkit
|
.local/share/webkit
|
||||||
.mtab.fuseiso
|
.mtab.fuseiso
|
||||||
.mutt.*
|
.mutt.*
|
||||||
|
.ssh
|
||||||
.texlive*
|
.texlive*
|
||||||
.wine
|
.wine
|
||||||
|
.zcompdump
|
||||||
.zdirs
|
.zdirs
|
||||||
.zshistfile
|
.zshistfile
|
||||||
|
personal
|
||||||
temp
|
temp
|
||||||
|
todo.org
|
||||||
|
|
|
@ -26,11 +26,12 @@
|
||||||
|
|
||||||
## Variables
|
## Variables
|
||||||
HOST="$(hostname)"
|
HOST="$(hostname)"
|
||||||
|
PKG_ROOT="$(HOME)/.pkg"
|
||||||
|
|
||||||
## Arch Linux
|
## Arch Linux
|
||||||
if [ -e "/usr/bin/pacman" ]; then
|
if [ -e "/usr/bin/pacman" ]; then
|
||||||
ARCH_PKG_OFFICIAL="$HOME/.pkg-arch-official-${HOST}"
|
ARCH_PKG_OFFICIAL="$PKG_ROOT/arch-official-${HOST}"
|
||||||
ARCH_PKG_AUR="$HOME/.pkg-arch-aur-${HOST}"
|
ARCH_PKG_AUR="$PKG_ROOT/arch-aur-${HOST}"
|
||||||
|
|
||||||
PKG_LOCAL='pacman -Qq | sort'
|
PKG_LOCAL='pacman -Qq | sort'
|
||||||
PKG_FOREIGN='pacman -Qmq | sort'
|
PKG_FOREIGN='pacman -Qmq | sort'
|
||||||
|
@ -41,7 +42,7 @@ fi
|
||||||
|
|
||||||
## FreeBSD
|
## FreeBSD
|
||||||
if [ "$(uname)" = "FreeBSD" ]; then
|
if [ "$(uname)" = "FreeBSD" ]; then
|
||||||
pkg_info | cut -f1 -d' ' >"$HOME/.pkg-freebsd-${HOST}"
|
pkg_info | cut -f1 -d' ' >"$PKG_ROOT/freebsd-${HOST}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## TeXlive
|
## TeXlive
|
||||||
|
@ -53,7 +54,7 @@ if type tlmgr >/dev/null 2>&1; then
|
||||||
TEXLIVE_ALL="$(tlmgr info --only-installed | grep -v 'x86_64\|amd64' | cut -d' ' -f2 | cut -f1 -d':' | sort)"
|
TEXLIVE_ALL="$(tlmgr info --only-installed | grep -v 'x86_64\|amd64' | cut -d' ' -f2 | cut -f1 -d':' | sort)"
|
||||||
|
|
||||||
comm -3 <(echo "$TEXLIVE_BASIC") <(echo "$TEXLIVE_ALL") | sed 's/ //g' | \
|
comm -3 <(echo "$TEXLIVE_BASIC") <(echo "$TEXLIVE_ALL") | sed 's/ //g' | \
|
||||||
grep -vi 'collection-basic\|scheme-minimal\|texlive-common\|texlive-docindex\|texlive-en' >"$HOME/.pkg-texlive-$(uname)-${HOST}"
|
grep -vi 'collection-basic\|scheme-minimal\|texlive-common\|texlive-docindex\|texlive-en' >"$PKG_ROOT/texlive-$(uname)-${HOST}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## Cleaning
|
## Cleaning
|
||||||
|
|
Loading…
Reference in New Issue