Api/apt

From Minux Wiki
Revision as of 08:19, 24 September 2024 by Shorun (talk | contribs)
Jump to navigation Jump to search

apt api, used to manage software and it's sources


apt.install() - installs a package from the available apt servers.

apt.uninstall() - removes a package from the computer.

apt.update() - updates the system, alternative option is "-f" for a forced reinstall like "apt -U".

apt.addsource(sourceurl) - adds a repository source

apt.clearsource(sourceurl)- removes a repository url from the list

apt.bootbuild() - rebuilds /boot/addon.d

apt.aliasbuild() - rebuilds /boot/alias.ls

apt.cleanup() - runs cleanup instructions for a program

apt.softlist() - updates the available software list on from the apt servers and puts it in "/temp/apt/programs.ls"