LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-14-2002, 02:44 AM   #1
saravanan1979
Member
 
Registered: Jan 2002
Posts: 163

Rep: Reputation: 30
Source for RPM library


Hello
Where do i get the source for RPM.I want to upgrade my rpm library from rpm3.0xx to rpm4.0xx,i browsed the net to find the source but i was not able to spot it.Can anyone tell me where i can find the source and also where i can find that.Can u also tell me how to compile the source
 
Old 06-14-2002, 07:30 AM   #2
shoot2kill
Member
 
Registered: Jan 2002
Location: California
Distribution: Red Hat
Posts: 402

Rep: Reputation: 30
www.google.com or search for rpmfind
 
Old 06-14-2002, 07:38 AM   #3
saravanan1979
Member
 
Registered: Jan 2002
Posts: 163

Original Poster
Rep: Reputation: 30
I cannot find source for rpm4.0 only source is available for rpm3.0 and below?????????????/
 
Old 06-14-2002, 07:44 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
why do you insist on using a source rpm? either way there ARE plenty of rpm's on rpmfind if you bother looking.
 
Old 06-14-2002, 07:51 AM   #5
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Then, what the hack is this? . This is just one example from this every-rpm-dependant-user-must-know-site.
And take a look here. Is this what you've been looking for?

Last edited by neo77777; 06-14-2002 at 07:56 AM.
 
Old 06-14-2002, 08:16 AM   #6
saravanan1979
Member
 
Registered: Jan 2002
Posts: 163

Original Poster
Rep: Reputation: 30
Dear neo77777
Thanks a lot for ur help i was not able to locate the rpm.I think i need to compile the source Can u tell what are other dependencies needed for this source.Can i just use
makefile <filename>.Or what other steps should i follow to install the sourcr.It will be very kindo of u if u could expalin this to me
 
Old 06-14-2002, 08:20 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
WHY do you need to install the source? and IF you do for whatever reason you will do it the same as any other source package, but it'll be placed in /usr/src/RPM/packagename normally
 
Old 06-14-2002, 08:31 AM   #8
saravanan1979
Member
 
Registered: Jan 2002
Posts: 163

Original Poster
Rep: Reputation: 30
Dear Chris
Sorry for the misunderstanding,okay u fairly expereinced enough plz help me to come out of the tight corner.First let me tell u i am Linux Newbie so plz give me some detailed explanations.
I have uninstalled the existing verison of RPM lib from my machine(rpm 3.0x) which is shipped along with RH 6.2 know i cannot install any rpms.The only thing that is possible is to compile the source for and install RPM package.After wjhich i can install other RPMS.So please can u tell me how to insatll this source.Plz...........
 
Old 06-14-2002, 08:44 AM   #9
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
You can go to http://www.wiejak.priv.pl/pub/Linux/system/rpm2tgz/
get the tarball, unpack it
read README and INSTALL if provided install it, now you can convert rpm into a tarball and install an rpm as if it were a tarball.
Good luck.
Now you have a lesson, don't uninstall critical packages, like in your case you need rpm installed in order to install rpm's.
P.S. I am at work and my linux machine is undergoing maintainance, so I have to use NT, I d/l'd the aforementioned tarball and what you have to do is just copy the contents somewhere in you PATH, it has a structure of usr/bin and there two files rpm2tgz and rpmoffset just coppy these two into convinient location.

Last edited by neo77777; 06-14-2002 at 08:53 AM.
 
Old 06-14-2002, 08:54 AM   #10
saravanan1979
Member
 
Registered: Jan 2002
Posts: 163

Original Poster
Rep: Reputation: 30
Dear neo
I have learnt a lesson long back i really feel sorry for what i have done.Fisrst thanks a lot fr ur patience.I am a Linux newbie so kindly give me some detailed explanation.What do u mean by installing rpm as a tarball.In url u gave me there was no read me file available...How do i install it can u plz give me a detailed explanation shall i just untar and call the make file command.Plz take me as ur close firend and help me to come out of this tight corner...Plz...........
 
Old 06-14-2002, 08:56 AM   #11
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Ok I just edited my previous post there is
Quote:
P.S. I am at work and my linux machine is undergoing maintainance, so I have to use NT, I d/l'd the aforementioned tarball and what you have to do is just copy the contents somewhere in you PATH, it has a structure of usr/bin and there two files rpm2tgz and rpmoffset just coppy these two into convinient location.
So there is no Makefile, so you don't have to do make && make install , these are precompiled binaries, actually rpm2tgz is a shell script, the other one is a binary file I cannot see the contents of it, you'll need cpio installed in order to use rpm2tgz and the syntax is straightforward
rpm2tgz filename.rpm

Last edited by neo77777; 06-14-2002 at 09:00 AM.
 
Old 06-14-2002, 09:11 AM   #12
saravanan1979
Member
 
Registered: Jan 2002
Posts: 163

Original Poster
Rep: Reputation: 30
neoo I am very sorry so u mean to say that after i install these two files ,i have to install othere rpms by calling
rpm2tgz filename.rpm
or i have to install these 2 files by using the abobe command. i really feel ashamed of my ignorance and lack of skill to exploi things within a short span of time.To install this file i just nedd to untar them from the root directory?????.
 
Old 06-14-2002, 09:20 AM   #13
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
did you untar the rpm2tgz.tgz file? If yes, suppose you were in the /home/user/ directory and the tarball is there, then if you ran
[user@domain /home/user] tar xvfz rpm2tgz.tgz
it will create a usr directory in your /home/user directory
[user@domain /home/user] ls -ld usr
[user@domain /home/user] drwxr-xr-x blah blah usr
[user@domain /home/user] cd usr/bin
[user@domain /home/user/usr/bin]ls
[user@domain /home/user/usr/bin] rpm2tgz rpmoffset #this is output of ls
[user@domain /home/user/usr/bin] su
Password:
[root@domain /home/user/usr/bin] cp * /usr/local/bin
[root@domain /home/user/usr/bin] rpm2tgz
[root@domain /home/user/usr/bin] returns usage message

That's about it. And later to save space you can delete /home/user/usr directory with all its contents with
[root@domain /home/user] rm -rf usr/

Last edited by neo77777; 06-14-2002 at 09:26 AM.
 
Old 06-14-2002, 09:43 AM   #14
saravanan1979
Member
 
Registered: Jan 2002
Posts: 163

Original Poster
Rep: Reputation: 30
One small little query after installing this tarball i can install other rpm's using
rpm2tgz username.rpm is it not.....
so i can install the .rpm for an rpm library and after that install other packages using rpm -ivh <filename> is it not
I really greatefull to ur help and concern.Thanks a million
 
Old 06-14-2002, 09:47 AM   #15
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
No what rpm2tgz does is just converting rpms into tarballs, so after you ran the rpm2tgz it sopposed to convert packafge.rpm into package.tar.gz, then yuou should follow the steps for installing packages from tarballs (tar xvfz tarball.tar.gz; cd newly_created_dir; ./configure; make ; make install, etc )
 
  


Reply



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
RPM need library intmail Slackware 5 07-21-2005 06:32 AM
pthread library Source RPM samirs Linux - Newbie 1 06-03-2005 01:58 PM
source for xlib / libx11 library source? Whatsisname Linux - Software 7 02-18-2005 03:23 PM
Library source in c and QT in c++ Will it work ?? johnnyde Programming 5 02-03-2005 01:54 PM
Source Function Library dadepfan Linux - General 2 08-22-2004 11:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:29 AM.

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
Open Source Consulting | Domain Registration