feat(install-script): apt: use extrepo

- Instead of manually adding gpg files or using `add-apt-repository` for
  common applications use `extrepo`
- package-list-os: Add: foliate, ghostscript, imagemagick, kitty, xsel
- package-list-os: Remove: smplayer
- test-script: use `podman` instead of `docker`
- Dockerfile: Remove older OSes
This commit is contained in:
Pratik Tripathy
2025-08-25 18:46:42 +05:30
parent c99861d997
commit eb9b6b5ab3
4 changed files with 16 additions and 22 deletions

View File

@@ -101,12 +101,8 @@ apt_setup() {
sudo apt-get update && sudo apt-get upgrade -y
# Add VS-Code repo
sudo apt-get install -y wget gpg
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor >packages.microsoft.gpg
sudo install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/packages.microsoft.gpg
echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" | sudo tee /etc/apt/sources.list.d/vscode.list >/dev/null
rm -f packages.microsoft.gpg
sudo apt-get install -y wget gpg extrepo
sudo extrepo enable dotnet docker-ce github-cli mattermost nvidia-cuda postgresql syncthing vscode winehq deb-multimedia-backports deb-multimedia-non-free
if [ "$ID" = "debian" ]; then
debian_setup
@@ -129,9 +125,6 @@ debian_setup() {
ubuntu_setup() {
# Add Ulauncher repo
sudo add-apt-repository universe -y && sudo add-apt-repository ppa:agornostal/ulauncher -y
# Add dotnet ppa
sudo add-apt-repository ppa:dotnet/backports
}
input_file_check() {

View File

@@ -7,9 +7,6 @@ clang
cmake
code
codespell
fd-find
fzf
git
gitleaks
hadolint
html
@@ -68,16 +65,22 @@ fd-find
ffmpeg
flameshot
flatpak
foliate
fzf
gcc
gdb
ghostscript
git
gnupg
gparted
grub-customizer
gzip
htop
ImageMagick
imagemagick
inxi
kitty
kde-spectacle
kitty
kitty-terminfo
libreoffice
nala
@@ -90,7 +93,6 @@ qbittorrent
rclone
ripgrep
simplescreenrecorder
smplayer
solaar
syncthing
ufw
@@ -100,6 +102,7 @@ vlc
vulkan-tools
wget
xclip
xsel
yt-dlp
zsh

View File

@@ -1,10 +1,8 @@
#FROM kdeneon/plasma
FROM debian:11-slim
#FROM debian:12-slim
#FROM ubuntu:20.04
#FROM ubuntu:22.04
#FROM debian:13-slim
#FROM ubuntu:23.04
#FROM fedora:40
FROM ubuntu:24.04
#FROM fedora:42
WORKDIR /dotfiles
RUN apt-get update && apt-get install sudo -y # for debian distros
#RUN dnf install sudo -y # for fedora and its derivatives

View File

@@ -3,9 +3,9 @@
# Prune, build and run docker
main() {
cd ../.. # change docker context to dotfile repo
docker container prune -f && echo "Removed old Docker containers"
docker build -t dotfile-setup:latest -f scripts/test/Dockerfile . && echo "Docker build success"
docker run -it dotfile-setup:latest
podman container prune -f && echo "Removed old Docker containers"
podman build -t dotfile-setup:latest -f scripts/test/Dockerfile . && echo "Docker build success"
podman run -it dotfile-setup:latest
}
main "$@"