How to install a program via tar file in Arch Linux

Asked By 50 points N/A Posted on -
qa-featured

I installed Arch Linux with KDE on my computer. I am not familiar with tar files and I need help with it. Some downloads cannot be downloaded using the command line but by using tar files. How do I install a program with a tar file? Are there any free programs I can use? Thanks.

SHARE
Answered By 0 points N/A #148902

How to install a program via tar file in Arch Linux

qa-featured

I will explain the solution in the next steps, but first you must make sure that you are in the terminal as admin by using the 'su' command and then entering your administrator password.

After that, make sure that you have the "base-devel" group installed, and also git.

Install it by using this command : pacman -S base-devel git

Wait for the process to finish and then continue with these steps:

1. Enter the directory where your package is by entering in the terminal :

cd /home/yourusername/Folder/nameofpackagedfolder

2. You must make the package, so while you are in the nameofpackagedfolder enter the following command:

makepkg

3. If by any chance there are missing dependencies, i advise you in entering the following command to build and install all needed dependencies:

makepkg -s

4. Once all the dependencies have been installed, you may continue by typing in the console the following terminal command: pacman -U packagename-packageversion.pkg.tar.xz

These are the steps that you must fulfill so that you can install any tarball on your Arch Linux.

Related Questions