8000 GitHub - getsolus/eopkg: eopkg - Solus package manager implemented in python3 · GitHub
[go: up one dir, main page]

Skip to content
getsolusPublic

About

eopkg - Solus package manager implemented in python3

Resources

Stars

17 stars

Watchers

10 watching

Forks

Repository files navigation

eopkg package manager

Fork of the PiSi (Packages Installed Successfully as Intended) Package Manager, originally from Pardus Linux, and adapted/maintained during the lifetime of SolusOS, EvolveOS and Solus.

Updating translations

There are two parts to updating translations: compiling the strings to be translated, and pulling the translations. Since this project has been added to the Solus Transifex organization, both parts are relatively easy.

First, you need to have the Transifex CLI tool installed. If you 7C95 do not have it installed, check out their webpage for instructions.

To compile the strings for translation, run:

./update_pot.sh

These will automatically be pushed to transiflex and translation updates will automatically be created as Pull Requests.

When eopkg is built, the build system will then compile the translations into a format usable by Python.

eopkg venv testing

Prerequisites

On e.g. RHEL 9.x compatible distros, install the following:

sudo dnf install python-pip-wheel python-devel python python-libs

On other distributions, install the equivalent packages.

To build the eopkg.1 man-page, the pandoc executable needs to be available.

Setting up the eopkg_venv venv

  • Execute ./prepare_eopkg_venv.sh
  • Depending on the shell you use, source one of eopkg_venv/bin/activate, eopkg_venv/bin/activate.fish, or eopkg_venv/bin/activate.zsh.

Now you should be able to execute eopkg.py --version successfully, independently of whether your host system is running Solus or not.

Running commands with sudo inside the venv

To run a command with elevated privileges via sudo inside the venv, execute:

sudo -E env PATH="${PATH}" <the command>

Example:

source eopkg_venv/bin/activate
sudo -E env PATH="${PATH}" eopkg.py --version
deactivate

Building a Solus chroot using the eopkg_venv eopkg.py version

After setting up and activating the venv as above, run ./build_chroot.sh followed by ./start_systemd_nspawn.sh (recommended) or /start_chroot.sh.

This will dump you to a root shell in a minimal Solus chroot.

Exiting systemd-nspawn chroot

Execute poweroff as root.

Exiting non-systemd-nspawn chroot

Type exit or CTRL+D to exit the chroot.

After exiting the chroot, you might be prompted by sudo to enter your user password; this is because the kernel virtual filesystems that were mounted into the chroot directory need to be properly unmounted again.

Deactivating the eopkg_venv

Type deactivate to deactivate the eopkg_venv, after which you should be back to your normal shell session.

About

eopkg - Solus package manager implemented in python3

Resources

Stars

17 stars

Watchers

10 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0