removed pacutils dependency
the script now uses pacman's build in flag to output all pkg's (even looks the same)
This commit is contained in:
parent
ceb94c21fc
commit
2aca92f351
@ -6,7 +6,7 @@ Update script written in bash for Arch. Keeps all your pacman and aur packages a
|
|||||||
Needed dependencies
|
Needed dependencies
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pacman -S zip pacutils
|
pacman -S zip
|
||||||
```
|
```
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
|
2
makefile
2
makefile
@ -1,4 +1,4 @@
|
|||||||
VER = "v1.1"
|
VER = "v1.2"
|
||||||
|
|
||||||
install:
|
install:
|
||||||
@echo "==> Installing update $(VER)..."
|
@echo "==> Installing update $(VER)..."
|
||||||
|
6
update
6
update
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# updates via an aur-helper and flatpak with flags
|
# updates via an aur-helper and flatpak with flags
|
||||||
# version 1.1
|
# version 1.2
|
||||||
|
|
||||||
IGreen="\033[0;92m" # Green
|
IGreen="\033[0;92m" # Green
|
||||||
NC="\033[0m" # Text Reset
|
NC="\033[0m" # Text Reset
|
||||||
@ -26,7 +26,7 @@ Help() {
|
|||||||
# creates package lists, moves them into a zip, adds some other files to the zip and backups the pacman database in the form of a tar
|
# creates package lists, moves them into a zip, adds some other files to the zip and backups the pacman database in the form of a tar
|
||||||
# it then rsyncs the zip and the tar to the backup location
|
# it then rsyncs the zip and the tar to the backup location
|
||||||
before_backup() {
|
before_backup() {
|
||||||
paclog-pkglist > pacman-pre.txt
|
pacman -Q > pacman-pre.txt
|
||||||
flatpak list > flatpak-pre.txt
|
flatpak list > flatpak-pre.txt
|
||||||
zip --quiet --move before-backup.zip.new pacman-pre.txt flatpak-pre.txt
|
zip --quiet --move before-backup.zip.new pacman-pre.txt flatpak-pre.txt
|
||||||
zip --quiet --grow before-backup.zip.new /etc/fstab /etc/makepkg.conf
|
zip --quiet --grow before-backup.zip.new /etc/fstab /etc/makepkg.conf
|
||||||
@ -46,7 +46,7 @@ after_backup() {
|
|||||||
# updates using aur-helper
|
# updates using aur-helper
|
||||||
update_with_aur_helper() {
|
update_with_aur_helper() {
|
||||||
"${aur_helper}"
|
"${aur_helper}"
|
||||||
paclog-pkglist > pacman-after.txt
|
pacman -Q > pacman-after.txt
|
||||||
}
|
}
|
||||||
|
|
||||||
# updates using flatpak update
|
# updates using flatpak update
|
||||||
|
Loading…
x
Reference in New Issue
Block a user