LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 02-26-2009, 03:37 PM   #1
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Debian, OS X
Posts: 1,298

Rep: Reputation: 102Reputation: 102
Question Some un-answered questions


Hi All,

I gave a interview yesterday. I did well on all files / server configuration etc.

I could not answer few questions, one of them is :-

Quest If we make a tar file of all binaries and other files which we can see by rpm -ql package-name, and extract those tar files on some other server where that package is not present, will now our package (extracted from tar file) work properly.


Pls help me with this.

Thanks in advance.

Last edited by vikas027; 02-26-2009 at 04:03 PM. Reason: as directed my moderator
 
Old 02-26-2009, 03:48 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
you need to post each question in a seperate thread, or you'll get lost. delete three of them above, and open a new thread for each as they are not related to each other.
 
Old 02-26-2009, 05:18 PM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 469Reputation: 469Reputation: 469Reputation: 469Reputation: 469
As with any manually installed rpm file - what is the main reason that it won't install? Hint: you normally get told by the output of the install command....
 
Old 02-26-2009, 05:34 PM   #4
gergely89
Member
 
Registered: Feb 2009
Posts: 100

Rep: Reputation: 21
If your backup tarball contains your RPM database as well, then the existing RPM database on the other system will be overwritten - which is not necessarily a good thing.

If your backup tarball does NOT contain your RPM database, then you will end up having binaries placed onto the new system without the existing RPM database knowing anything about them.

If you plan to maintain and update a system based on any RPM tool, then you shouldn't use tarballs for such tasks.

linux

Last edited by gergely89; 02-28-2009 at 12:05 AM.
 
Old 02-28-2009, 08:12 AM   #5
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Debian, OS X
Posts: 1,298

Original Poster
Rep: Reputation: 102Reputation: 102
Thanks people.
 
Old 03-01-2009, 04:01 AM   #6
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 675

Rep: Reputation: 136Reputation: 136
Quote:
Originally Posted by vikas027 View Post
Hi All,

I gave a interview yesterday. I did well on all files / server configuration etc.

I could not answer few questions, one of them is :-

Quest If we make a tar file of all binaries and other files which we can see by rpm -ql package-name, and extract those tar files on some other server where that package is not present, will now our package (extracted from tar file) work properly.


Pls help me with this.

Thanks in advance.
Some of the packages will work, some - no.
rpm may also have pre/post install scripts and it may be essential to run them so package will be able to function as it should.

For example, packages that install shared libraries usually also run ldconfig.
 
Old 03-01-2009, 04:15 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
And what about the dependencies?
 
Old 03-01-2009, 05:59 AM   #8
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 675

Rep: Reputation: 136Reputation: 136
Quote:
Originally Posted by acid_kewpie View Post
And what about the dependencies?
I understand question as "what difference will made installation as rpm package or as tar files"

It's implied that installation is possible, i.e. dependencies are met.

But when I came to think about, it can be viewed another way too: rpm installation will fail with "missing dependencies ..." message, while tar installation will succeed and only then installed programs will (likely) fail to run.
 
Old 03-01-2009, 01:20 PM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
exactly. the state of the destination server is totally unknown.
 
  


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
I need help with Linux I suck at it: I have some questions that I need answered jschnell32 Linux - Newbie 2 02-25-2009 01:11 AM
LXer: Questions Answered, Questions Posed - What Happened? LXer Syndicated Linux News 0 05-14-2007 03:46 PM
2 simple questions i need answered cooldudejz Ubuntu 4 09-05-2005 12:04 PM
Before I try out Linux, I would like these questions answered. xLunatiK Linux - Newbie 43 08-17-2005 07:12 PM
Very Frequently Asked/Answered Questions ppuru LQ Suggestions & Feedback 7 07-30-2004 02:32 AM


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