Do you want to install Software From Source on Ubuntu?
This guide will help you through.
The APT is the tool, commonly used to install packages, remotely from the software repository. Basically, it is a simple command based tool that you use to install files / software.
Here at Ibmi Media, as part of our Server Management Services, we regularly help our Customers to perform Software Installation tasks on their Linux Server.
In this context, we shall look into the process to install Software on Linux.
For installing any software we need the software dependencies first.
Get started with the required dependencies.
i. To locate the software dependencies. we will need to search for the software package in packages.ubuntu.com.
ii. Click the link and review the information there to get started.
iii. Type in the package name in the keyword field, select the Ubuntu distribution, and then the Section from which the software can be located.
iv. Next, click on Search to locate the results of the research.
Then you will be able to see the list of available dependencies matching the requirements we gave while searching.
Here you will follow the steps provided below to install the git versioning software system.
1. Ensure that the packages are up to date:
# apt-get update -y
Next, we must have a compiler available. We can run the below command to install build-essential:
# apt-get install build-essential -y
2. Download Dependencies using the following command:
# apt install build-essential dh-autoreconf libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev -y
3.We can download the Source Package
To download the package with get:
# wget https://github.com/git/git/archive/v2.23.0.tar.gz
After that we can extract the archive and change the directory into the new git directory:
# tar -xvzf v2.23.0.tar.gz
# cd git-2.23.0/
4: Install Git wit the following command:
# make configure
# ./configure --prefix=/usr
# make all
# make install
# git --version
[Need assistance with Linux related tasks? We can help you!]
1. First we need to download the deb File
# wget http://mirrors.kernel.org/ubuntu/pool/universe/j/jq/jq_1.5+dfsg-2_amd64.deb
2. Then we need to install dependencies
# apt-get install libjq1 libc6 -y
3. Install the package
# dpkg -i jq_1.5+dfsg-2_amd64.deb
# dpkg -i jq_1.5+dfsg-2_amd64.deb
Personal Package Archive or PPA is a proprietary repository for developers to provide versions of their software packages in a specific storage medium.
It allows us to install packages that are not available in the official Ubuntu package repositories.
Here we will be installing flatpack itself and then use it to install Cowsay.
The Cowsay program creates an ASCII picture of a cow stating a specific message we add:
# cowsay hello there
< hello there >
1. Setting up PPA Archive
# add-apt-repository ppa:alexlarsson/flatpak -y
# apt-get update -y</code
2. Install Flatpak
# apt-get install flatpak -y
Flatpak is used to install desktop Linux applications as it offers a command-line interface to install applications.
The steps to follow are given below:
1. First, we can run the following command to add the Flathub repository:
# flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
2. Then we can locate by using the following:
# flatpak search Cowsay
3. After that we can install it by running the below command.
# flatpak install Cowsay -y
We will get the following result;
Looking for matches…
Required runtime for org.gnome.gitlab.Cowsay/x86_64/stable (runtime/org.gnome.Platform/x86_64/3.34) found in remote flathub
ipc network wayland x11
ID Arch Branch Remote Download
1.  org.gnome.Platform x86_64 3.34 flathub 207.8 MB / 318.4 MB
2. [ ] org.gnome.Platform.Locale x86_64 3.34 flathub < 322.7 MB (partial)
3. [ ] org.freedesktop.Platform.GL.default x86_64 19.08 flathub < 90.8 MB
4. [ ] org.freedesktop.Platform.openh264 x86_64 19.08 flathub < 593.4 kB
5. [ ] org.gnome.gitlab.Cowsay x86_64 stable flathub < 56.3 kB
Installing 1/5… 79% 3.2 MB/s 00:17
This article will guide you on steps to #install #software from #source on #Ubuntu. The Complete #command is apt-get which is the easiest way to install files/Softwares #packages.
Once installed, on the command line, you can use dpkg --listfiles packagename . For instance, dpkg --listfiles firefox .
If you want to see what files a package contains without installing it, then you can install apt-file and use that.