Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 2942  / 1 Year ago, mon, december 5, 2022, 6:01:13

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.


More From » apt

 Answers
5

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

[#26066] Tuesday, December 6, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
neasinient

Total Points: 491
Total Questions: 120
Total Answers: 93

Location: The Bahamas
Member since Mon, Aug 2, 2021
3 Years ago
neasinient questions
;