HOWTO: Best Of - Installing Applications in GNU/Linux
I’ve had a few people recently ask me about some basic information about installing applications in GNU/Linux. That started me thinking that although I’ve written about these topics before, they’re obviously quite popular. I took a quick look at the site stats and they bear out my observation: my posts on installing applications garner a LOT of hits from Google.
Since there’s no real way to highlight those posts in a blog setting, I thought I’d steal a page out of Darren Rowse’s book and put together a ‘best-of’ post (I looked for Darren’s article, but couldn’t find it. Maybe I dreamed the entire thing). So without any further ado, here’s a quick rundown on installing applications onto your GNU/Linux box:
Identify the application you want to install (duh!)
Check your own repositories first. This means trying apt-get install progam (for Debian systems) or yum install program (for RPM systems). You may find it in your repositories and not have to go any further.
edit: Don’t know what type of system you’re running? Here’s a link to an entry I wrote on determining that.
No go? Carry on…
Try to get the proper package for your system
Visit the vendor/author website and see what file formats are available for download. If you’re running a Debian-based system (K/Ubuntu, Kanotix), see if there’s a file ending in .deb. If you’re running a Red Hat system (Suse, Fedora), see if there’s a file ending in .rpm. Note that a slackware package ends in .tgz and therefore I assume that is a gzipped tarball. However, since I have zero experience with Slackware, you’re on your own with that one!
No go? Next…
Grab the source code ‘tarball’
Many authors just don’t have the time or inclination to make distribution specific packages and will therefore only make the source code available to you. A source code file is generally indicated by a .tar.gz/.tgz/.tar.bz/.tb2 extension (the possible combinations are endless. More on that below.) If that’s all you can get, download it.
Need a quick primer on what source code is? Here’s a link to an article I wrote that explains just that.
Note that the author may supply many tarballs, each containing source code for a specific hardware platform. Here’s a quick list to the confusing world of tarball naming conventions.
Now that you have some kind of file downloaded on to your machine, here’s a link to an article I wrote detailing how to install each type of file. For quick reference, I’ll recap here, but check the link for more details.
Install an .deb package
As root: dkpg -i filename.deb
Install an .rpm package
As root: rpm -ivh filename.rpm
Install the tarball
First you have to unzip the tarball to get at the internal files. Here’s a link to an article I wrote on how to ‘untar’ various types of files.
Once you have the file untarred, check out the article I wrote on how to install the thing. For quick reference I’ll list the steps here, but check out the article for fill details:
In the directory that the file has been untarred to:
./configure
make
as root: make install
Hope that helps!
Related Stories
POSTED IN: General
8 opinions for HOWTO: Best Of - Installing Applications in GNU/Linux
adsense alex
Jan 25, 2006 at 6:21 am
can you post an article about linux security?
Jon
Jan 25, 2006 at 6:37 am
Sure! Give me a few days to write one :)
robertnelsononline.com » Blog Archive » New Linux User » HOWTO: Best Of - Installing Applications in GNU/Linux
Jan 26, 2006 at 7:24 pm
[…] New Linux User » HOWTO: Best Of - Installing Applications in GNU/Linux Helpful Linux Information […]
New Linux User » Geeky Fun: Logging On To Darkstar
Mar 2, 2006 at 9:13 pm
[…] Package Management. I’m going to need OpenOffice shortly and while I’m familiar with Debian’s apt-get and Red Hat’s yum, I have no idea what to use in Slackware. […]
anna
Oct 10, 2007 at 10:34 am
I can’t find on the internet advise IN WHICH directory to install applications.
For .deb: with dpkg the files are automatically placed in right directory.
But how for for tar.gz (unp - ./configure - make - make install). In which directory should i first put the tar.gz?
and how for .bin-files?
(I am using Debian)
Clair
Oct 10, 2007 at 8:33 pm
Hi, Anna! I don’t really build from source a lot. But what my friends has taught me is this: You could make a /src directory in your home directory. You could put the tar.gz files of the apps you want to install. And if you don’t specify where to install, configure will use the prefic usr/local by default so that would make it available to anyone who has access to it. HTH. :)
anna
Oct 11, 2007 at 11:44 am
I found the following: http://www.debian-administration.org/articles/142
bin packages are installable with fakeroot make-jpkg.
“Whilst there is nothing wrong with installing software outside the control of the Debian packaging system, it’s not something that should be undertaken lightly as it makes it hard to keep track of installations, and it complicates updating a number of machines from a centralised Debian package repository.”
So I finally found the answer.
Anonymous
Apr 18, 2008 at 7:20 pm
Very informative. Thanks for reaching out to new users.
Have an opinion? Leave a comment: