A drop-in replacement for eopkg
that supports Solus 3rd party packages!
Also ships with a Python API, as a bonus.
Just download, make executable and run!
$ wget https://github.com/pycampers/eopkg3p/releases/download/v0.0.6/eopkg3p
$ chmod +x ./eopkg3p
$ ./eopkg3p
Or, install using pip
$ pip3 install eopkg3p
Python 3.6+ only
MIT Lisence
python3.6
git
eopkg
pkexec
If you know eopkg
, you already know eopkg3p
.
$ eopkg3p
Usage: eopkg3p [OPTIONS] COMMAND [ARGS]...
Options:
--cache Output the cache dir.
--help Show this message and exit.
Commands:
delete-cache (dc) Delete cache files
install (it) Install packages
list-available (la) List all packages available in the local repository.
list-installed (li) List all 3rd party packages that are currently...
remove (rm) Alias for `eopkg rm`
update-repo (ur) Update the local repository
upgrade (up) Upgrade 3rd party packages
Installing and updating 3rd party packages is a real pain from the Software center. This package elimitates that problem.
eopkg3p
has a Python API as a bonus and can be imported like so:
import eopkg3p
Build eopkg package of a 3rd party app based on the app's pspec file from the Path
object in the pspecfile
argument.
pspecfile
has to be a Path
object.
Check that the local repository directory ($HOME/.cache/eopkg3p/3rd-party
) exists and that it's not empty.
Return the description of a 3rd party app as a string based on the app's pspec file from the Path
object in the pspecfile
argument.
Return the release number of a 3rd party app as an integer based on the app's pspec file from the Path
object in the pspecfile
argument.
If given the argument available
as a dict
object with string as first argument and a Path
object as the second argument, the function will return a dict object with only the installed 3rd party apps.
If given the argument available
as a dict
object with string as first argument and a Path
object as the second argument, the function will return a dict object with only the outdated 3rd party apps.
Return a dict
with the name of the available 3rd party apps as a string as the key and the POSIX-path to their pspec.xml file as the value.
Return all installed apps and their release number as a generator object.
Install eopkgfile with eopkg
based on the app's pspec file from the Path
object in the pspecfile
argument.
Install eopkgfile from file
with eopkg based on the pspec file.