mirror of
https://github.com/flynx/post-install.git
synced 2025-12-18 01:21:39 +00:00
added package removal...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
e228d6ceba
commit
667edd2364
12
post-install
12
post-install
@ -79,6 +79,7 @@ FEATURES=(
|
|||||||
flathub
|
flathub
|
||||||
|
|
||||||
dnf
|
dnf
|
||||||
|
dnf-remove
|
||||||
flatpak
|
flatpak
|
||||||
npm
|
npm
|
||||||
vim
|
vim
|
||||||
@ -279,6 +280,12 @@ PKG_DNF=(
|
|||||||
|
|
||||||
${PKG_DNF_LATEX[@]}
|
${PKG_DNF_LATEX[@]}
|
||||||
)
|
)
|
||||||
|
PKG_DNF_REMOVE=(
|
||||||
|
gnome-tour
|
||||||
|
gnome-shell-extension-background-logo
|
||||||
|
gnome-shell-extension-apps-menu
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
# XXX
|
# XXX
|
||||||
PKG_TERMUX=(
|
PKG_TERMUX=(
|
||||||
@ -405,6 +412,8 @@ EOF
|
|||||||
|
|
||||||
|
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
# NOTE: if using exclude=... first remove the package and then add it
|
||||||
|
# to exclude=...
|
||||||
function feature-dnf-config(){
|
function feature-dnf-config(){
|
||||||
if [ -z "$(grep 'f_lynx/post-install' /etc/dnf/dnf.conf)" ] ; then
|
if [ -z "$(grep 'f_lynx/post-install' /etc/dnf/dnf.conf)" ] ; then
|
||||||
echo Updating config
|
echo Updating config
|
||||||
@ -449,6 +458,9 @@ function feature-dnf(){
|
|||||||
@ sudo dnf update ${DNF_ARGS}
|
@ sudo dnf update ${DNF_ARGS}
|
||||||
@setupList sudo dnf install ${DNF_ARGS} - ${PKG_DNF[@]}
|
@setupList sudo dnf install ${DNF_ARGS} - ${PKG_DNF[@]}
|
||||||
}
|
}
|
||||||
|
function feature-dnf-remove(){
|
||||||
|
@setupList sudo dnf remove ${DNF_ARGS} - ${PKG_DNF_REMOVE[@]}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user