Install package from without adding PPA
Is there a way to install a package via a simple URL without having to add a PPA beforehand? Something like apt-get https://url.to.package.deb
? Or perhaps some command line options that would add the PPA, update, and install the package all at once? Seems like I've seen other package managers that do this. I just find it a hassle to type the commands to add a whole repository just so I can install only one of its packages.
Solution 1:
If you already know the .deb
file link, then download that deb file by,
wget https://url.to.package.deb
If you want to download a package then run,
apt-get download <package-name>
It will download all the .deb files related to the package.Finally install all the .deb
files by running,
sudo dpkg -i filename.deb