Rework package management
This commit is contained in:
parent
5d3318b623
commit
f2726c0c45
3
.chezmoiignore
Normal file
3
.chezmoiignore
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
packages/
|
||||||
|
packages/**
|
||||||
|
justfile
|
||||||
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
packages/arch_ignore.txt
|
||||||
|
packages/aur_ignore.txt
|
||||||
4
justfile
Normal file
4
justfile
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
update-package-lists:
|
||||||
|
touch packages/arch_ignore.txt packages/aur_ignore.txt
|
||||||
|
pacman -Qqen | sort | comm -23 - packages/arch_ignore.txt > packages/arch_packages.txt
|
||||||
|
pacman -Qqem | sort | comm -23 - packages/aur_ignore.txt > packages/aur_packages.txt
|
||||||
@ -1,5 +1,4 @@
|
|||||||
paru
|
paru
|
||||||
paru-debug
|
|
||||||
rbenv-git
|
rbenv-git
|
||||||
ruby-build-git
|
ruby-build-git
|
||||||
zen-browser-bin
|
zen-browser-bin
|
||||||
@ -1,5 +0,0 @@
|
|||||||
regen-pkglists:
|
|
||||||
touch arch_ignore.txt
|
|
||||||
pacman -Qqen | sort | comm -23 - arch_ignore.txt > arch_packages.txt
|
|
||||||
touch aur_ignore.txt
|
|
||||||
pacman -Qqem | sort | comm -23 - aur_ignore.txt > aur_packages.txt
|
|
||||||
@ -1,8 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# vim: ft=bash
|
# vim: ft=bash
|
||||||
# arch_packages.txt hash: {{ include "private_dot_local/private_share/packages/arch_packages.txt" | sha256sum }}
|
# arch_packages.txt hash: {{ include "packages/arch_packages.txt" | sha256sum }}
|
||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
echo "Installing Arch packages..."
|
echo "Installing Arch packages..."
|
||||||
sudo pacman -S --needed - < private_dot_local/private_share/packages/arch_packages.txt
|
sudo pacman -S --needed - < {{ joinPath .chezmoi.sourceDir "packages/arch_packages.txt" | quote }}
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# vim: ft=bash
|
# vim: ft=bash
|
||||||
# aur_packages.txt hash: {{ include "private_dot_local/private_share/packages/aur_packages.txt" | sha256sum }}
|
# aur_packages.txt hash: {{ include "packages/aur_packages.txt" | sha256sum }}
|
||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
@ -14,4 +14,4 @@ if ! command -v paru; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Installing AUR packages..."
|
echo "Installing AUR packages..."
|
||||||
paru -S --needed - < private_dot_local/private_share/packages/aur_packages.txt
|
paru -S --needed - < {{ joinPath .chezmoi.sourceDir "packages/aur_packages.txt" | quote }}
|
||||||
|
|||||||
@ -1,19 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# arch_packages.txt hash: {{ include "private_dot_local/private_share/packages/arch_packages.txt" | sha256sum }}
|
|
||||||
# aur_packages.txt hash: {{ include "private_dot_local/private_share/packages/aur_packages.txt" | sha256sum }}
|
|
||||||
|
|
||||||
set -euo pipefail
|
|
||||||
|
|
||||||
echo "Installing Arch packages..."
|
|
||||||
sudo pacman -S --needed - < packages/arch.txt
|
|
||||||
|
|
||||||
echo "Installing paru..."
|
|
||||||
pushd "$(mktemp -d)"
|
|
||||||
git clone https://aur.archlinux.org/paru.git
|
|
||||||
cd paru
|
|
||||||
makepkg -si
|
|
||||||
popd
|
|
||||||
|
|
||||||
echo "Installing AUR packages..."
|
|
||||||
paru -S --needed - < packages/aur.txt
|
|
||||||
Loading…
x
Reference in New Issue
Block a user