Created
December 31, 2016 00:46
-
-
Save wlib/434ff719329d969e50391dbb16db8d7e to your computer and use it in GitHub Desktop.
Bash functions to quickly install programs with apt, from a repository and from any .deb file
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
# Add this to your ~/.bashrc file for quick installation of .deb files, you can then update programs with `debinst URL` | |
inst() { | |
sudo apt install $1 --assume-yes | |
} | |
debinst() { | |
wget $1 -O /tmp/install.deb | |
sudo dpkg -i /tmp/install.deb | |
inst -f | |
} | |
update-vscode() { | |
debinst https://vscode-update.azurewebsites.net/latest/linux-deb-x64/stable # .deb file link | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment