How to install lpms

From HadronWiki

Jump to: navigation, search

What you need

First things first, if you want to install lpms to your Arch Linux, we have a package in AUR

Also we have a Gentoo overlay (Not anymore, obsoleted)

If you aren't using these distros, here what you should do:

You need to have:

  • A *nix operating system (we use Linux to develop, but we've seen it working on BSD)
  • Toolchain apps (gcc, binutils, make, patch etc.) to build packages
  • A working Python with sqlite support. If you're using a binary distribution you have to install needed additional package (like python-pysqlite)

Get the code

lpms is on Gitorious. You can check it on its page. To download the lpms with git, here is the code you need:

$ git clone git://gitorious.org/hadron/lpms.git lpms

Installation

After downloading lpms, execute these commands in the lpms directory (with root privileges):

mkdir -p /usr/lib/python2.7/site-packages/lpms
mkdir /var/tmp/lpms
mkdir -p /var/cache/lpms/sources
mkdir /etc/lpms
mkdir -p /var/db/lpms
mkdir /var/lib/lpms/

After creating directories and entering lpms directory which we've just cloned, let's copy lpms to its destination. By the way, use your preferred python path. We like 2.7 :)

cp -a src/* /usr/lib/python2.7/site-packages/lpms/
cp data/* /etc/lpms
cp bin/* /usr/bin/
Personal tools