Installing Packages
Installing packages from the MPR is usually a straightforward process, and will typically only consist of a few steps:
- Acquire the build files for the packages.
- Verify that the package and any other used files don’t contain malicious (or otherwise untrustworthy) code or links.
- Build the package with
makedeb
, which will perform all the needed steps to properly package the application. - Install the package with
apt
.
If you have Mist installed, you can just run the following to install a package from the MPR (replacing pkgname
with the name of the MPR package):
mist install pkgname
Otherwise, continue with the instructions below.
To get all needed build files, just run the following command (replacing pkgname
with the name of the MPR package):
git clone "https://mpr.makedeb.org/pkgname.git"
First change directories to the package you just cloned:
cd pkgname/
Make sure to carefully check all build files for potentially malicious code before building (common files include preinst
, postinst
, prerm
and postrm
scripts, as well as the PKGBUILD itself). If you’re not sure if a package is malicious, do not build the package and ask for help in makedeb’s support rooms.
Next you need to actually create the flag by running makedeb
. Some common arguments that you may want to pass include:
-s
/--syncdeps
: Automatically installs missing build dependencies before building. If the package depends on other MPR packages, you’ll need to install those manually first.-i
/--install
: Installs the created package automatically if and after a successful build is made (only works on the Debian releases of makedeb).-r
/--rmdeps
: Removes unneeded dependencies found inmakedepends
andcheckdepends
after a successful build. You may want to avoid this option if you’re going to be rebuilding a package a lot.
If makedeb complains about errors during dependency installation when using the -i
flag, check the output of APT for any missing dependencies and search the MPR for the missing packages. Then, follow the above steps, installing the packages additionally with the --asdeps
passed to makedeb.
In the case of MPR dependencies being present, it may also be wiser to look into using an MPR helper, which can, among other things, help automate the finding of MPR dependencies for you.