Package Management

From Argent Wiki
Jump to: navigation, search

EPKG: Simple Package Management

Standard package manager on Argent is epkg

In order to output all its options, you have: epkg --help

Standard options available: update, upgrade, install, remove, search


Normally, the upgrade command is:

 epkg upgrade

Alongside, the non-interactive command:

 epkg autoupgrade

In our encounters with all types of upgrades of packages, be them simple depencencies or runtime dependencies,

we've observed that certain packages do not always upgrade, or are not pulled for upgrades.

Other types of packages and dependencies are build dependencies that are not runtime-relevant, yet they're being pulled

due to ebuilds not having a clear policy over either runtime or build dependencies.

Hence, devmode requires a full upgrade, that will require additional dependencies being added in the system, and upgraded:

 epkg upgrade-full

This upgrades all build dependencies required to compile all the programs in devmode

The non-interactive full upgrade:

 epkg autoupgrade-full

Backup Management

EPKG can backup all your personally configured and customized packages through the standard Portage configuration

For example, own Apache and MySQL configuration, all packed-up into Apache tbz2 package and MySQL tbz2 package

The precompiled versions can be used to be redistributed to thousands of other Argent servers around

Standard options: backuppkg, backupallpkg

To be used together with environment variable PKGDIR:

 PKGDIR="/path/to/any/backup/folder" epkg backuppkg <package>


 PKGDIR="/path/to/any/backup/folder" epkg backupallpkg

The PKGDIR variable has default to /usr/portage/packages

Tips: This option can be used to downgrade or upgrade a package directly from the PKGDIR directory which you setup

The PKGDIR is predefined to default to /usr/portage/packages, so be careful on how you're using it or why you're using it

Tips: Backup Management

As you can see, the package is available and was created by backuppkg command previously, in the /tmp/whatever/ folder

Tips & Notes: Backing up a package function is actually a wrapper of quickpkg command from Gentoo

Tips & Notes: The backed-up package will have the same version, dependencies and configurations as the original package which is installed on the original system!

Recovery: Backup Management

 PKGDIR="/tmp/whatever" epkg install <backed-up-package>

The command will reinstall the named package from a previous backed-up stage