Skip to main content

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: ********

In [4]: res = sudoaptinstall.sudo_apt_install(
    package_list=["git", "irssi"],
    password=password
    )

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


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.1.tar.gz (1.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page