LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 02:37 PM   #1
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,305

Rep: Reputation: 107Reputation: 107
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 03:03 PM. Reason: as directed my moderator
 
Old 02-26-2009, 02:48 PM   #2
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
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, 04:18 PM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
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, 04: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-27-2009 at 11:05 PM.
 
Old 02-28-2009, 07:12 AM   #5
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,305

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

Rep: Reputation: 137Reputation: 137
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, 03:15 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
And what about the dependencies?
 
Old 03-01-2009, 04:59 AM   #8
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 676

Rep: Reputation: 137Reputation: 137
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, 12:20 PM   #9
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
exactly. the state of the destination server is totally unknown.
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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