LPM: Local Package Manager

Want to install software without root?

Quick Start

Let's install LPM.

$ cd
$ wget https://lpm.bio/lpm
$ perl lpm init
$ rm ./lpm

Next we relogin. Alternatively you can use the following command:

$ exec $SHELL -l

Let's install a new package. For exmaple, you can type the following to install ttyrec:

$ ttyrec
bash: ttyrec: Command not found.
$ lpm install ttyrec
(you see lots of messages here)
$ exec $SHELL -l (or you relogin here)
$ ttyrec -h
usage: ttyrec [-u] [-e command] [-a] [file]
$

Wow, it's easy as yum and it doesn't need root!

To show the installed packages, do 'lpm list':

$ lpm list
  2M    1  02-Feb-2014  lpm-1.0
 28M   13  06-Sep-2014  maven-2.0.11
 22M   13  02-Feb-2014  porg-0.1
 12M    6  06-Sep-2014  ttyrec-1.0.8

'lpm list (package name)' shows the list of installed files for a specified package (e.g., maven).

$ lpm list maven

Uninstall a package (e.g., maven).

$ lpm uninstall maven

Update a package (a.k.a. freezing a package, uninstalling it, installing a new one).

$ lpm update maven

Freezing a package (i.e. a.k.a. creating a tar ball that contains all files in the package).

$ lpm freeze ttyrec

See the list of the freezed packages.

$ lpm fridge

Thaw a freezed package.

$ lpm thaw ttyrec-1.0.8

Uninstall everything including LPM itself.

$ lpm removelocaldir

Install a package from URL. (You need to write an LPM script if the given package does not follow the GNU-style installation process. (i.e., ./configure && make && make install))

$ lpm install http://tukaani.org/xz/xz-4.999.9beta.tar.bz2

Most users use only features mentioned here.