Distribution | Package Manager(s) | Installation Example | Alternative(s) |
Debian (Ubuntu) | apt apt-get dpkg | sudo apt install libreoffice | sudo apt-get install libreoffice sudo dpkg -i whois_5.4.2_amd64.deb |
Red Hat (CentOS/ Rocky/ Fedora/ Alma) | dnf (current) RPM yum (deprecated) | sudo dnf install libreoffice | sudo rpm -i libreoffice.rpm sudo yum install libreoffice |
Slackware | slapt-get pkgtool | slapt-get -i openoffice | pkgtool -i openoffice installpkg openoffice.tgz upgradepkg –install-new openoffice.tgz |
Arch (Manjaro) | pacman | sudo pacman -S libreoffice | |
openSUSE | Zypper | sudo zypper install libreoffice |
Install Software From Source
First, make sure that you have the necessary development tools installed:
Debian-based:sudo apt install build-essential checkinstall libcurl-devel
RHEL-based:sudo dnf group install -y "Development tools"
Next, extract the archive:tar -xzvpf example.tar.gz
Navigate into the extracted folder:cd example/
If there is no ./configure file available yet (for example you’ve downloaded from Git), create one.
If there is an autogen.sh file present:autogen.sh
If there is not an autogen.sh file:
make configure
Run the configuration script, in this example installing the binary file in /usr/local:./configure --prefix=/usr/local
Compile the source code and then installs:sudo make install
Check that the program is installed:/usr/local/bin/example --version
Note: as a newer alternative, Ubuntu has replaced make install with checkinstall. Look here for more info:
https://help.ubuntu.com/community/CompilingEasyHowTo