Portage (Gentoo based distros) support.
Functions arranged in categories and in names (i.e. aot-get functions come always before yum functions in each category).
Added u_installedPackages_portage function, which is specific to portage. (For showing package versions)
Commands are rather hacky because portage gives a lot of output which needs to be arranged.
For some unkonwn reason to me (I don't really know python), regular output wouldn't work so I had to pipe it into a temporary file and then cat the file in order for it to work.
u_installedPackages_portage is needed because portage supports different versions of packages, so user has to choose the specific version he wants to uninstall.
Versions can't be shown globaly because if you try to update a package it would just reinstall it (i.e. emerge www-clients/firefox-31.0, it would just reinstall firefox. while emerge www-clients/firefox would install the latest version).
Portage (Gentoo based distros) support. Functions arranged in categories and in names (i.e. aot-get functions come always before yum functions in each category). Added u_installedPackages_portage function, which is specific to portage. (For showing package versions)
Commands are rather hacky because portage gives a lot of output which needs to be arranged. For some unkonwn reason to me (I don't really know python), regular output wouldn't work so I had to pipe it into a temporary file and then cat the file in order for it to work.
u_installedPackages_portage is needed because portage supports different versions of packages, so user has to choose the specific version he wants to uninstall. Versions can't be shown globaly because if you try to update a package it would just reinstall it (i.e. emerge www-clients/firefox-31.0, it would just reinstall firefox. while emerge www-clients/firefox would install the latest version).