Created
January 31, 2023 23:21
-
-
Save pguimier/73f729bc8f98ae509fd11559596be290 to your computer and use it in GitHub Desktop.
Useful alias to seek and install packages using apt-cache, apt-file and fzf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias packinst="apt-cache search . | awk '{print \$1}' | sort -u | fzf -m --preview \"cat <(apt-cache show {1}) <(apt-file list {1} | cut -d':' -f2)\" | xargs -ro sudo apt-get install" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment