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 12-11-2010, 09:17 AM   #1
noony123
Member
 
Registered: Oct 2010
Posts: 167

Rep: Reputation: 0
List of softwares installed using tar (from source)


Distro: Centos 5, Fedora 13

Hi all.

If i am installing softwares through rpm, i can later query to see which softwares are installed on my system (using rpm). But if i have installed any softwares from source (using tar, /.configure method), how can i list those softwares to see which one are installed ?

Thanks in advance
 
Old 12-11-2010, 09:19 AM   #2
brownflamigo1
Member
 
Registered: Jun 2007
Distribution: Ubuntu
Posts: 90

Rep: Reputation: 15
rpm -qai | grep ^Name | awk '{print $3}'
check 'man rpm' for more information

Last edited by brownflamigo1; 12-11-2010 at 09:23 AM.
 
0 members found this post helpful.
Old 12-11-2010, 09:22 AM   #3
noony123
Member
 
Registered: Oct 2010
Posts: 167

Original Poster
Rep: Reputation: 0
Dear Sir,

I didnt get it, if i havent installed the package using rpm, how can it show me with rpm command ?
 
Old 12-11-2010, 09:24 AM   #4
brownflamigo1
Member
 
Registered: Jun 2007
Distribution: Ubuntu
Posts: 90

Rep: Reputation: 15
So, did you install things using rpm or no?
 
Old 12-11-2010, 09:32 AM   #5
noony123
Member
 
Registered: Oct 2010
Posts: 167

Original Poster
Rep: Reputation: 0
Dear Sir,

Lets say i installed rdesktop from source. Now over time to time i might install other softwares from source (not rpm). Now if i want to see what softwares are installed on my system (using source and not rpm) how can i check it ?
 
Old 12-11-2010, 09:45 AM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
You can't, unless you keep the source files you installed in a separate directory.
That's why you better use the package manager.
There are however tools to install source packages via the package manager.
Slackware has src2pkg
There is checkinstall
http://www.asic-linux.com.mx/~izto/checkinstall/
You could also build rpm's from tar files
http://freshrpms.net/docs/fight/

Kind regards
 
1 members found this post helpful.
Old 12-11-2010, 09:50 AM   #7
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
This is one (of many) reasons NOT to install directly from source. As far as I know there is no easy clean way to see what (source) pacages you have installed.

Once you learn how to build an rpm(and get the system set up for it), building rpms is about as difficult as installing from source. Going forward just take the extra step and build the rpm. Then install your own rpm via a yum localinstall.

The big question is WHY are you installing from source in the first place? The vast majority of software (rdesktop comes to mind) is already available in the common repos for Centos and Fedora's repos are even better stocked.
 
Old 12-11-2010, 09:56 AM   #8
noony123
Member
 
Registered: Oct 2010
Posts: 167

Original Poster
Rep: Reputation: 0
Is there any easy way to build rpm from source files ? i am using Centos/Fedora 13

Kindly guide me
 
Old 12-11-2010, 09:56 AM   #9
noony123
Member
 
Registered: Oct 2010
Posts: 167

Original Poster
Rep: Reputation: 0
Is there any easy way to build rpm from source (tar) files ? i am using Centos/Fedora 13

Kindly guide me
 
Old 12-11-2010, 10:48 AM   #10
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
First read this:

Particullarly the Caveats section.

Again WHY and what do you need to build from source?
 
Old 12-11-2010, 10:56 AM   #11
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
It took a while to track down the howtos:

To setup your system:

To build:

These are just two of MANY howtos available via the net.

Again, I STRONGLY recommend not building from source on an rpm based system.
 
Old 12-11-2010, 11:20 AM   #12
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,353
Blog Entries: 55

Rep: Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541
...and if the tarball contains a .spec file you can do something like 'rpmbuild -tb tarballname.tar.gz'.
 
  


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
'E:Malformed line 54 in source list /etc/apt/sources.list (dist parse), E:The list of vsssuccess@gmail.com Linux - Desktop 1 11-17-2010 08:17 AM
Unable to install softwares with ".tar.gz,.tar.bz2" extension yasasvi srikanth Linux - Newbie 4 09-11-2009 09:38 AM
About list of softwares installed in Solaris rajaniyer123 Solaris / OpenSolaris 3 05-24-2007 09:50 PM
List Of The Softwares waqaskool Linux - Software 5 10-09-2006 04:02 PM
How to INSTALL softwares with *.tar.gz or *.tar.tgz extension On SLACKWARE 10.2 DdOs Linux - Software 4 03-20-2006 01:54 AM


All times are GMT -5. The time now is 01:10 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