Python3 module to install APT Packages.
Project description
sudoaptinstall
Python3 module to install APT Packages.
Installation
Install with pip
pip3 install -U sudoaptinstall
Usage
In [1]: import sudoaptinstall
In [2]: from getpass import getpass
In [3]: password = getpass()
Password: ********
# Satisfize dependencies with
# sudoaptinstall.satisfize_dependencies(root_password)
In [4]: res = sudoaptinstall.sudo_apt_install(
package_list=["git", "irssi"],
password=password,
use_torsocks=False
)
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
git is already the newest version (1:2.17.1-1ubuntu0.4).
irssi is already the newest version (1.0.5-1ubuntu4.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
In [5]: res.ok
Out[5]: True
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sudoaptinstall-0.3.tar.gz
(2.1 kB
view details)
File details
Details for the file sudoaptinstall-0.3.tar.gz
.
File metadata
- Download URL: sudoaptinstall-0.3.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d9e0ec7b6f8904ad84af933d8be95250357ad5e3e95c3bd66614a909df0f1dc |
|
MD5 | fe4b0571ee1037c027c1bcba7ad084f2 |
|
BLAKE2b-256 | dd618f0d406a7eb10e63097bd4ae8c2f90b000555146db3b096557a016339d6f |