Archived
0
0
Fork 0
This repository has been archived on 2024-02-06. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/bin/clean-backup-pacman
2021-12-27 21:04:49 -08:00

7 lines
411 B
Bash
Executable file

#!/bin/sh
notify-send "WARNING: CLEANING & BACKING UP PACMAN PACKAGES! NO NOT USE PACMAN RELATED COMMANDS UNTIL FINISH MESSAGE IS SENT!"
sudo pacman -Qtdq --noconfirm | sudo pacman -Rns --noconfirm -
pacman -Scc --noconfirm
pacman -Qq > $HOME/git/dotfiles/packages.txt
cd $HOME/git/dotfiles && git add . && git commit -m "[AUTOMATED PUSH] Backed up Pacman" && git push
notify-send "Finished backing up Pacman."