I would like to install a bunch of packages (glogg, libprotobuf7, libleveldb1, libsnappy1, libhdf5-7) on an Ubuntu system on which I do not have root privileges. (I understand that this can be achieved by forcing the downloading and installation to take place on my home directory for example).
I would like to do this as fast as possible, e.g using apt
(rather than manually searching the web for a link address to the package, then wget
-ing it, then opening the tarball, then reading the INSTALL file to install correctly etc).
Is there a way to do this?
How can I install a package without root access? has a 1st answer that assumes that we have the .deb
file already downloaded. This is not my case (and if you know of a way to get it quickly without scouring the web, I'd love to know).
aptitude
andapt-get
are two different frontends.deb
packages that are downloaded for installation don't containINSTALL
files, and are meant to be read bydpkg
to be parsed and installed. Also, note that the packages contain two files:data.tar.xz
, which contain the files to be installed relative to/
, andcontrol.tar.xz
, which contain metadata about the package (package name, dependencies, installed size, etc.) and any configuration scripts.apt-get download <package_name>
without root access and follow the answer in that question