Author Topic: How to Instal softwares without Synaptic ?  (Read 1885 times)

Offline sudla1

  • New Friend
  • *
  • Posts: 4
How to Instal softwares without Synaptic ?
« on: February 11, 2011, 11:46:59 AM »
I'm quite new to Linux and especially to PCLinuxOS.
I've made an extensive search, but I've not been able to find a page that shows clearly - with graphic explanations - how to install softwares in PCLinuxOS by command line not included in Synaptic, neither here nor around in the internet: every time rpm is mentioned, it's always about ??? Fedora, Red Hat, Mandriva, never PCLinuxOS!
I know this is not the policy of this distribution, but I've installed Zen Mini in 2 separates hard drives, one installation is only for experiments of this kind, so no problem if something goes wrong.
Can anyone help ?
Thank you.

Offline tschommer

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1889
  • MLU and BLU (Bacon lovin' user)
Re: How to Instal softwares without Synaptic ?
« Reply #1 on: February 11, 2011, 11:58:53 AM »
Hi and welcome, sudla1!

If you want to get started with updating you system and installing additional software, our friend blindschLeiche has a wonderful small tutorial:

http://kellerleiche.bplaced.net/pclos/doku.php?id=synatic_and_repositories&#how_can_i_get_the_most_current_package_list

It's also mentioned how to search for software you might need. If you have something that doesn't exist in our repositories (remember, only use one!), you can find out how to properly suggest it for packaging if it meets the criteria - see here.

If you have any further questions, ask in the appropriate section, and you'll see that many helping hands will be waving  ;)

Enjoy!  :D

Torsten
Our defense is in the preservation of the spirit which prizes liberty as the heritage of all men, in all lands, everywhere."
Abraham Lincoln --September 11, 1858 Speech at Edwardsville, Illinois

Offline Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6372
  • I'm going South
Re: How to Instal softwares without Synaptic ?
« Reply #2 on: February 11, 2011, 04:40:48 PM »
I'm quite new to Linux and especially to PCLinuxOS.
I've made an extensive search, but I've not been able to find a page that shows clearly - with graphic explanations - how to install softwares in PCLinuxOS by command line not included in Synaptic, neither here nor around in the internet: every time rpm is mentioned, it's always about ??? Fedora, Red Hat, Mandriva, never PCLinuxOS!
I know this is not the policy of this distribution, but I've installed Zen Mini in 2 separates hard drives, one installation is only for experiments of this kind, so no problem if something goes wrong.
Can anyone help ?
Thank you.

sudla1,

Installing apps that aren't in the repository is usually not a good idea if you are new to Linux, but if you have a testing setup, do use it.

To install an rpm, open a terminal, su to root, and either use the command

Code: [Select]
rpm -Uvh /path/to/the/package/you/want/to/install.rpm
or

Code: [Select]
rpm -ivh /path/to/the/package/you/want/to/install.rpm
The option "-U" stands for "update", and the option "-i" for "install". "-U" is usually the safer choice; if you don't have installed an earlier version of an app "-U" and "-i" will do the same thing: install the package. If you have installed an earlier version of a package, "-U" will remove the older version before installing the new one. If you want two different versions of the same program, you have to use the option "-i", but the install may well fail.

Both the commands above will fail to finish and give you an error message if the package you are trying to install has a dependency that is missing on your system. Then you first have to locate that dependency an install it.

If the app that you want to install and one of its dependencies are both dependent on each other, you have to install them both with the same command.

That's what great about Synaptic: it will find and install the dependencies almost automatically.




But what if you don't want to install an rpm package. What if you want to install from a tarball instead?

A tarball is simply a compressed archive. Depending on how it is compressed it may have extensions like .tar.gz or .tgz for gzip-compressed archives, and .tar.bz2 or .tbz2 for bzip-compressed archives.

The archive may contain anything. Some, mainly proprietary, applications come as compiled binaries, sometimes accompanied by a script or other program that installs and uninstalls them.

But the typical tarball would contain the source code of a program that you must compile yourself. When you unpack it you will usually find both the code and other necessary files in a directory with more or less the same name as the tarball itself (but naturally without the the tarball's extensions).

In that directory (or in a subdirectory) you may also find an "Info" file or an "INFO" file -- and a "README", "readme" or "Readme" file.

Read them. They'll tell you whether the  three-step recipe ./configure, make, make install is all you need to follow when you compile the application. Sometimes a lot more than three steps may be necessary, sometimes less. The readme file may also list configuration options and dependencies, libraries and other files that you must have installed before you can compile your app.

But let's suppose that the three-step formula is all your application needs.

The first step is ./configure. The dot in the beginning means "this directory": you want to run a version of "configure" that accompanies the source code of the program you want to compile -- so you have to be in the directory containing the right "configure". Often that is the top directory with the same name as your tarball, but it may also be a subdirectory further down in the hierarchy.

The second step is make. Here you should not add "./" to the beginning of the command. You want to run /usr/bin/make and as /usr/bin is in your $PATH variable you can leave out the path. But you have to remain in the directory where you ran "./configure".

For these two steps you can remain your ordinary user. But then comes make install, and for that you should be root. (Sometimes it may be possible to install a program in your home directory, and then you don't have to be root -- but why would you want to?)

If "./configure" gives up with an error message before finishing you have to look at what happened just before the error and try to find out what went wrong. More often than not the reason will be a missing dependency that you have to find and install before you rerun "./configure". The same goes for "make".
« Last Edit: February 11, 2011, 05:45:03 PM by Bald Brick »
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

Offline Taco.22

  • Sr. Member
  • ****
  • Posts: 481
Re: How to Instal softwares without Synaptic ?
« Reply #3 on: February 11, 2011, 05:12:02 PM »
Bald Brick, that would have to be the neatest explanation of how to install a tarball I've read in a long time.  That's one to keep :)
Linux Registered User # 529407


Offline Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6372
  • I'm going South
Re: How to Instal softwares without Synaptic ?
« Reply #4 on: February 11, 2011, 05:14:13 PM »
Thanks.  ;D
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

Offline Aradalf

  • Sr. Member
  • ****
  • Posts: 474
Re: How to Instal softwares without Synaptic ?
« Reply #5 on: February 11, 2011, 05:15:00 PM »
Bald Brick, that would have to be the neatest explanation of how to install a tarball I've read in a long time.  That's one to keep :)

+1
I've never seen a better explanation of how to install software in Linux manually. ;D

Offline Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6372
  • I'm going South
Re: How to Instal softwares without Synaptic ?
« Reply #6 on: February 11, 2011, 05:31:19 PM »
Bald Brick, that would have to be the neatest explanation of how to install a tarball I've read in a long time.  That's one to keep :)

+1
I've never seen a better explanation of how to install software in Linux manually. ;D

I'm blushing. Thanks.
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

Offline zorlac

  • Full Member
  • ***
  • Posts: 213
Re: How to Instal softwares without Synaptic ?
« Reply #7 on: February 11, 2011, 10:34:42 PM »
I just saved it too, thanks.

Offline YouCanToo

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 5324
  • Location: Lebanon, OR., USA
    • Spreading the word.......
Re: How to Instal softwares without Synaptic ?
« Reply #8 on: February 11, 2011, 10:39:54 PM »
Thanks.  ;D

May I use it in the new knowledge base ?

YouCanToo




Be sure to visit the NEW Knowledge Base


Linux is user-friendly- it's just picky who its friends are!

Offline Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6372
  • I'm going South
Re: How to Instal softwares without Synaptic ?
« Reply #9 on: February 12, 2011, 03:42:20 AM »
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

Offline YouCanToo

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 5324
  • Location: Lebanon, OR., USA
    • Spreading the word.......




Be sure to visit the NEW Knowledge Base


Linux is user-friendly- it's just picky who its friends are!

uncleV

  • Guest
Re: How to Instal softwares without Synaptic ?
« Reply #11 on: February 12, 2011, 04:06:09 AM »
Thank you, Bald Brick! :)

Offline Taco.22

  • Sr. Member
  • ****
  • Posts: 481
Re: How to Instal softwares without Synaptic ?
« Reply #12 on: February 12, 2011, 07:35:38 AM »
Quote
May I use it in the new knowledge base ?

Thank God someone is writing all this down!!  I look forward to an Instruction Manual - just so it can tell me what I did wrong, and what I should have done!  As my old dad used to say; "If all else fails, read the instructions!"  Just need some instructions ;D
Linux Registered User # 529407


Offline Wildman

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 7551
  • Symphony for a Unstrung Tongue
Re: How to Instal softwares without Synaptic ?
« Reply #13 on: February 12, 2011, 07:40:59 AM »
Bald Brick, You write the way most of us think...thanks.. 8)
Happiness is not having what you want, but wanting what you have!

Joe Gable, "Joble" Was my Friend..
Dave "Exwintech" has also gone on...
Linux Counter #288984

Offline lightning slinger

  • Full Member
  • ***
  • Posts: 110
Re: How to Instal softwares without Synaptic ?
« Reply #14 on: February 12, 2011, 07:54:14 AM »
Don't forget the manual for rpm commands is always available with the following command from the terminal
Code: [Select]
man rpm
HTH