LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-24-2004, 11:01 AM   #1
Monkey_Magic
LQ Newbie
 
Registered: Aug 2004
Posts: 2

Rep: Reputation: 0
Angry installing .tar packages!


Hi Everyone,

Im having problems installing uncompiled packages.

I can use apt, yum, synaptic rpm etc no probs but when it comes to compiling and installing packages from .tar then I struggle.

Heres what I do:

1. download the .tar file
2. decompress the .tar file (usually resulting in a folder containing the required files for the app and compilation)
3. as root, run the ./configure command.
4. as root, run the make command.
5. as root, run the make install command.

usually says installation successful but when i query the rpm with rpm -q packagename it says that package is not installed???

Heres what I think:

1. Does the path that i am installing the package folder from matter?
2. I think there is a simple linuxism that im not aware of that is soo simple, it is not documented (makes me feel better anyway!)

Also kinda related:

why does apt or rpm or yum never update with the latest packages? keeping up to date with vendor releases.

Many thanks,

Monkey!!!!!!!
 
Old 08-24-2004, 11:06 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Welcome to LQ.

Unless you install the package as an rpm the rpm database will not be updated,
 
Old 08-24-2004, 11:07 AM   #3
barisdemiray
Member
 
Registered: Sep 2003
Location: Ankara/Turkey
Distribution: Slackware
Posts: 155

Rep: Reputation: 30
Re: installing .tar packages!

Quote:
Originally posted by Monkey_Magic

1. download the .tar file
2. decompress the .tar file (usually resulting in a folder containing the required files for the app and compilation)
3. as root, run the ./configure command.
4. as root, run the make command.
5. as root, run the make install command.

usually says installation successful but when i query the rpm with rpm -q packagename it says that package is not installed???

...

why does apt or rpm or yum never update with the latest packages? keeping up to date with vendor releases.

Many thanks,

Monkey!!!!!!!
rpm maintains an internal list of files of packages when you done something with the packages but if you don't use rpm utility to install a package then how can it know the package? :-) You `must' use rpm when installing a package for later use of package information with rpm -qi or rpm -qf, ...etc. Your steps are correct when installing a tarball by the way.
 
Old 08-24-2004, 11:18 AM   #4
maxfacta
Member
 
Registered: Aug 2004
Location: Perth, Australia
Distribution: Debian @ home + work :)
Posts: 66

Rep: Reputation: 22
I think you've provided the answer to your problem in your question, in a way...
Quote:
I can use apt, yum, synaptic rpm etc no probs
which is fine, and why rpm -q would give you results.
Quote:
but when it comes to compiling and installing packages from .tar then I struggle
Don't get the terms "packages" confused here - an apt package is an 'apt package' - a precisely formatted colection of files, meta data and data for use by the package manager apt.
A tarball is not required to follow any convention, and is comprised of whatever the author deems necessary for it to perform its function. It is not part of any greater management system. Once you've done your make install, you're done! No "struggle"

(By the way, it shouldn't be necessary to run the ./configure and make as root - try not to get in the habit of su'ing flippantly.)


In order for a package manager to install the latest package, it needs to know about it. Generally, when asked to install a package, a tool such as apt will consult a local, prebuilt database of packages. It will select one from here, then go out and fetch it. To install up-to-date software, you need an up-to-date package database.
With apt, run

apt-get update

as frequently as you feel necessary.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Really really newbie question about installing packages with tar.gz. Ardor Linux - General 11 09-18-2005 08:49 PM
can not fix tar packages tuzhiyong Linux - Newbie 1 11-23-2004 12:56 PM
installing/uninstalling .tar packages onegear Linux - Software 3 10-31-2004 04:39 PM
installing .tgz.tar packages slack_is_good Slackware 6 12-18-2003 01:14 PM
Uninstalling tar.gz packages david911 Linux - Software 3 10-17-2003 07:09 AM


All times are GMT -5. The time now is 03:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration