Python script for automagically handling package installation in Arch Linux, Debian, Ubuntu and Fedora. Build with ❤️ for simsid66 to use with SDE
- Download the script, toss it somewhere,
import uni_install
. Dead simple!
There're a few notable functions:
getOS()
: Returns the ID of the distro or base distro, depending onID
orID_LIKE
in /etc/os-releasesystemInstall()
: Install packages from a Python list, using the distro got fromgetOS()
systemUpdate()
: Same assystemInstall()
, except for updating the systemcheckRoot()
: A simple root access check. Used to stopAURBuild()
andgitBuild()
from running while having root accessAURBuild()
: Builds a package from AUR git linkgitBuild()
:git clone
,make
andsudo make install
a git linkchkBuildEnvArch()
: Check ifmakepkg
andgit
is present for AUR buildssetupBuildEnvArch()
: Setup build utils for AUR buildschkBuildEnvGit()
: Check ifgit
,make
and build dependencies are present for git source buildssetupBuildEnvGit()
: Setup build utils for git source buildsnetTest()
: Make a quick request to a server and report if it succeded or fails
- This script can only install the bare minimum for building Git packages. Packages that have other/optional dependencies must be installed with
systemInstall()
.gitBuild()
won't try to install dependencies for you