Skip to content

Instantly share code, notes, and snippets.

@wlib
Created December 31, 2016 00:46
Show Gist options
  • Save wlib/434ff719329d969e50391dbb16db8d7e to your computer and use it in GitHub Desktop.
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
# 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