justfile recipes for Debian
debian.just edited
117 lines 2.2 kB view raw
1# Aliases for Debian-based systems 2 3# Install packages 4[group('install')] 5install-deb-packages: 6 #!/usr/bin/env bash 7 sudo apt install -y \ 8 atop \ 9 autossh \ 10 borgbackup \ 11 borgmatic \ 12 btop \ 13 build-essential \ 14 curl \ 15 extrepo \ 16 firewalld \ 17 flatpak \ 18 git \ 19 hx \ 20 jc \ 21 jq \ 22 lynx \ 23 nmap \ 24 papirus-icon-theme \ 25 pipx \ 26 plasma-discover-backend-flatpak \ 27 ptyxis \ 28 pv \ 29 python3-dev \ 30 qalc \ 31 qalculate-qt \ 32 rclone \ 33 rsync \ 34 starship \ 35 unzip \ 36 w3m \ 37 wget \ 38 wl-clipboard \ 39 xclip \ 40 sudo extrepo enable tailscale 41 sudo apt update 42 sudo apt install -y tailscale 43 sudo systemctl enable --now tailscaled.service 44 45# Enable flathub 46[group('install')] 47enable-flathub: 48 #!/usr/bin/env bash 49 flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo 50 51# Search the package database 52[group('aliases')] 53acs pkg: 54 sudo apt-cache search {{ pkg }} 55 56# Search the package's APT policy 57[group('aliases')] 58acp pkg: 59 sudo apt-cache policy {{ pkg }} 60 61# Update the package database 62[group('aliases')] 63agu: 64 sudo apt update 65 66# Full system upgrade 67[group('aliases')] 68agud: 69 sudo apt update 70 sudo apt dist-upgrade 71 72# Install package(s) 73[group('aliases')] 74agi +pkgs: 75 sudo apt install {{ pkgs }} 76 77# Search for files in package 78[group('aliases')] 79afs pkg: 80 sudo apt-file search {{ pkg }} 81 82# Update the file database 83[group('aliases')] 84afu: 85 sudo apt-file update 86 87# apt autoclean 88[group('aliases')] 89aac: 90 sudo apt autoclean 91 92# apt clean the package cache 93[group('aliases')] 94agc: 95 sudo apt clean 96 97# List installed packages 98[group('aliases')] 99agli: 100 sudo apt list --installed 101 102# Purge package(s) 103[group('aliases')] 104agp +pkgs: 105 sudo apt purge {{ pkgs }} 106 107# Remove package(s) 108[group('aliases')] 109agr +pkgs: 110 sudo apt remove {{ pkgs }} 111 112# Autoremove unused packages 113[group('aliases')] 114agar: 115 sudo apt autoremove 116 117# vim: ts=4 sts=4 sw=4 et ft=just