mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-28 09:58:21 +01:00
Update README for python modules
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
a1c826bd1a
commit
cd44acfd81
1 changed files with 28 additions and 0 deletions
28
README.rst
28
README.rst
|
@ -1810,6 +1810,34 @@ Read files from sbo repository:
|
||||||
in/gtk-update-icon-cache -f usr/share/icons/$theme >/dev/null 2>&1\n fi\n do
|
in/gtk-update-icon-cache -f usr/share/icons/$theme >/dev/null 2>&1\n fi\n do
|
||||||
ne\nfi\
|
ne\nfi\
|
||||||
|
|
||||||
|
Get Slackware version:
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
>>> from slpkg.slack.slack_version import slack_ver
|
||||||
|
>>> slack_ver()
|
||||||
|
'14.2'
|
||||||
|
|
||||||
|
Find Slackware package:
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
>>> from slpkg.pkg.find import find_package
|
||||||
|
>>> find_package(find_pkg="vlc", directory="/var/log/packages/")
|
||||||
|
['vlc-2.2.6-x86_64-1alien']
|
||||||
|
|
||||||
|
Check for installed packages:
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
>>> from slpkg.pkg.installed import GetFromInstalled
|
||||||
|
>>> GetFromInstalled(package="ffmpeg").name()
|
||||||
|
'ffmpeg'
|
||||||
|
>>> GetFromInstalled(package="ffmpeg").version()
|
||||||
|
'-3.2.4'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Donate
|
Donate
|
||||||
------
|
------
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue