Go Back   Linux Forums by TotalPenguin! Get linux Help! > GUI Linux > Linux Applications

Linux Applications Discussion for Linux Software and Application releated issues.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-21-2008, 07:47 AM
TotalPenguin's Avatar
Administrator
 
Join Date: May 2007
Posts: 470
TotalPenguin will become famous soon enoughTotalPenguin will become famous soon enough
Default Installing Software

How can I install software? Under windows I just double clicked the setup file and that's all, but here it seems to be very difficult.

I have several programs I would like to ins

And I can't find and documentations to help me.
__________________
Business Directory
Technology Blog
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 02-21-2008, 09:00 AM
Super Moderator
 
Join Date: Dec 2007
Location: Denmark
Posts: 273
v0id is on a distinguished road
Send a message via MSN to v0id
Default

It can depend on the distribution you're using. Debian-based distributions have a really nice package-system. You can basically install whatever you want in a single line.
Code:
$ sudo apt-get install <application_name>
The application will be downloaded and installed right away, without you have to do anything. You'll sometime have to change some small configurations. Apt-get has a so-called "source-file." This file includes names on servers having the different applications. If none of the servers have the application you're searching for, you'll probably have to find another server which has, or install it manually.
Oh, no, manually? Don't worry, it isn't as hard as it may sounds. If you're downloading the sourcecode for a application, you'll have to do three steps. The first is the configuration. You shall let it know what it shall install, and what not to, and where it shall be installed. The configuration differs alot from application to application, but the configuration of the destination directory is almost always the same.
Code:
$ ./configure --prefix=<destination_directory>
As default, if none prefix provided, it will be installed in /usr/local/application_name. For a full-blown list of features, you can use the --help flag.
Code:
$ ./configure --help
The next step is to actually compile and link the sourcecode. The automated compiling-program for the compiling program can differ from application to application, but the most used is make (other known alternatives include jam.)
Code:
$ make
The last step is to install and put all the compiled files in the right directories. Fortunately, the make-script will take care of that too. Remember you'll probably need to have root-access.
Code:
$ sudo make install
It can be somewhat harder to uninstall/remove an application again. If you installed it using apt-get, it is easy. You'll just have to do this.
Code:
$ sudo apt-get remove <application_name>
If the application had installed some other small packages itself, you'll have to auto remove them. This is not hard neither, and apt-get will take care of that too.
Code:
$ sudo apt-get autoremove
If you installed the application by the sourcecode, you'll have to remove the directory (specified by --prefix) where all the files were installed in. Some icons and other similar files for the application has probably been installed in other directories, so you'll have to do a little search for them. Anyways, here's how you can delete the directory.
Code:
$ sudo rm -r <destination_directory>
A last note; sometimes you can find some self-installing-applications, where you can simply double-click on them, like in Windows, but it's rare, and personally, I prefer to install by sourcecode. You get the complete control on what to install and what not to.

Last edited by v0id; 02-21-2008 at 09:02 AM.
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 01:25 PM
TotalPenguin's Avatar
Administrator
 
Join Date: May 2007
Posts: 470
TotalPenguin will become famous soon enoughTotalPenguin will become famous soon enough
Default

Sounds complicated for a guy that used to double-click and press next, next, next...

Well I will try to install something with your methods, although I loved the Add/Remove... in Ubuntu, downloaded a lot of applications with that

Thanks
__________________
Business Directory
Technology Blog
Reply With Quote
  #4 (permalink)  
Old 02-23-2008, 04:41 PM
Off Off is offline
Member
 
Join Date: Feb 2008
Posts: 60
Off is on a distinguished road
Default

What does apt-get stand for?
Reply With Quote
  #5 (permalink)  
Old 02-23-2008, 04:54 PM
Super Moderator
 
Join Date: Dec 2007
Location: Denmark
Posts: 273
v0id is on a distinguished road
Send a message via MSN to v0id
Default

I'm not sure about the "get"-part, but "apt" stand for "Advanced Packaging Tool."
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 02-23-2008, 10:31 PM
Member
 
Join Date: Feb 2008
Posts: 32
Jame is on a distinguished road
Default

You probably already have this installed so you don't need to compile it. For other types of systems there is yum which does the same as apt-get. On RPM based systems you have the RedHat Package Manager (RPM) in which you just download an RPM and type

Code:
rpm -Uvh file.rpm
and your package is installed.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing windows programs TotalPenguin Linux Applications 5 01-12-2008 11:14 AM
Installing gentoo? TotalPenguin BSD 20 01-11-2008 06:40 PM
Installing ImageMagick in WHM Valor Linux Web Server 2 10-24-2007 03:13 PM
Ubuntu Not Installing KernelKorn Linux Applications 2 10-19-2007 09:14 AM
Installing OpenSuse problems! tcm9669 Linux Applications 7 01-10-2007 03:03 PM


All times are GMT. The time now is 11:44 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.