LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   How Do I Manually Install Programs (https://www.linuxquestions.org/questions/linux-desktop-74/how-do-i-manually-install-programs-776646/)

pawanmalnad 12-18-2009 02:44 AM

How Do I Manually Install Programs
 
Hi,
I am using dual OS in my system.
1. Windows Xp
2. PC Linux OS
I manually download .rpm files or .tar.gz files to Linux, i tried unzipping(.tar.gz file) it in Linux after unzipping i couldn't install it, cos i was not able to find .rpm file in it, though it was downloaded for Linux Forum . I tried all the possibilities but didn't work.
same happened while installing .rpm file.I am confused am i selecting the right cmd or not.
rpm - i xyz.rpm ------ to install in PC linux OS( yum doesn't respond)
tar -xvzf ------------ to extract .tar.gzip file
Please guide me how to install a package in Linux after manually downloading it from the internet.

pawanmalnad 12-18-2009 02:55 AM

Installation Problem of downloaded software in Linux
 
Hi,
I am using dual OS in my system.
1. Windows Xp
2. PC Linux OS
I manually download .rpm files or .tar.gz files to Linux, i tried unzipping(.tar.gz file) it in Linux after unzipping i couldn't install it, cos i was not able to find .rpm file in it, though it was downloaded for Linux Forum . I tried all the possibilities but didn't work.
same happened while installing .rpm file.I am confused am i selecting the right cmd or not.
rpm - i xyz.rpm ------ to install in PC linux OS( yum doesn't respond)
tar -xvzf ------------ to extract .tar.gzip file
Please guide me how to install a package in Linux after manually downloading it from the internet.

If anyone not able to make out the problem please leave the comment.

ronlau9 12-18-2009 03:09 AM

You can not find the package you like to install in the package manager (Synaptic ) ?
That is the most easy way installing software.

pawanmalnad 12-18-2009 03:50 AM

Hi ron :),

The problem is i am not connected to internet, so my packages are not getting updated. So i am trying manually downloading and installing the same. So i am not able to install it.

Apart from Synaptic there is no other option to upgrade software in my Linux system ?????

repo 12-18-2009 03:55 AM

Take a look at
http://www.sorgonet.com/linux/installing/
and
http://www.google.com

brianL 12-18-2009 06:09 AM

I've never used PC Linux OS, so I can't help with that. With .tar.gz files, after expanding, you'll usually find two text files: readme and install, that give instructions what to do next.

pixellany 12-18-2009 06:15 AM

First, always try the package manager first. Most of the SW you need should be available there. In some cases, you can specify additional repositories.

As BrianL says, a tar.gz can contain a variety of things---not necessarily an .rpm file. How you install depends on exactly what you are installing---if you tell us what it is, we can maybe give more help.

pixellany 12-18-2009 06:24 AM

I just noticed that this is a duplicate---since both have replies, we'll get them merged.

In the future, one thread per topic, please.

MTK358 12-18-2009 06:50 AM

First, you should see if your package manager has the package.

If not, get the .tar.gz or .tar.bz2 file. These files contain the source code of the program, not RPMs. Here's how to compile most source packages (do not type in the $'s and #'s, they represent the prompt):

Code:

$ tar -vzxf pkgname-version.tar.gz
--or--
Code:

$ tar -vjxf pkgname-version.tar.bz2
Then:

Code:

$ cd pkgname-version
$ ./configure
$ make
$ su
# make install
# exit
$ make clean

If ./configure gives an error message, it is probably a missing dependency. Try installing the dependency with your package manager, otherwise download its source package. Then run ./configure again, look for errors, and continue.

anand.arumug 12-18-2009 10:46 AM

RE: How Do I Manually Install Programs
 
I hope the following URL has the details you need to know about installing and removing software in your PCLinuxOS:

http://www.pclinuxos.com/wiki/index....age_Management

Hope it helps.

cpplinux 12-18-2009 10:56 AM

tar.gz usually contains source code. You should build it first. And when you install it or run rpm, make sure you have enough privilege -- e.g. as root.

Udi 12-18-2009 11:36 AM

If you downloaded the rpm locally, you can try to install it with yum by doing:

yum localinstall package.rpm

Note the command "localinstall" instead of the usual "install". Also, make sure your rpm is for PCLinuxOS and not for the other rpm-based distros.

As for the .tar.gz file, it could contain anything. If it's source code and you don't know how to build from source I suggest you forget about it. If it's a generic Linux binary (which is not distribution-specific) then it usually doesn't require installation and you can just try to run it. Sometimes .tar.gz files have installers in them which you run (like setup.exe in Windows).

jschiwal 12-30-2009 12:07 PM

The two related threads have been merged. Please don't double post in the same or different forums.


All times are GMT -5. The time now is 07:22 PM.