Quote:
Originally Posted by mfoley
I'll update my documentation to specify removing the older libreoffice package before installing the new one. slackpkg and sbopkg remove the old package automatically. I guess I wrongly assumed installpkg would do the same.
|
He kinda covers it above, but to give it a bit more concise. installpkg only installs. It doesn't care what else is on the system, it will just install. upgradepkg is used to upgrade installed packages with newer ones. upgradepkg offers two flags, --install-new and --reinstall. Normally, upgradepkg will fail if a package is installed or if you're trying to upgrade the same package (same version and build number). Those two flags allow you to override that.
It is much easier to just run
upgradepkg package-filename.txz than
removepkg package and
installpkg package-filename.txz.