LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Some un-answered questions (https://www.linuxquestions.org/questions/linux-newbie-8/some-un-answered-questions-707801/)

vikas027 02-26-2009 02:37 PM

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.

acid_kewpie 02-26-2009 02:48 PM

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.

XavierP 02-26-2009 04:18 PM

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....

gergely89 02-26-2009 04:34 PM

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

vikas027 02-28-2009 07:12 AM

Thanks people.

Valery Reznic 03-01-2009 03:01 AM

Quote:

Originally Posted by vikas027 (Post 3458544)
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.

acid_kewpie 03-01-2009 03:15 AM

And what about the dependencies?

Valery Reznic 03-01-2009 04:59 AM

Quote:

Originally Posted by acid_kewpie (Post 3461142)
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.

acid_kewpie 03-01-2009 12:20 PM

exactly. the state of the destination server is totally unknown.


All times are GMT -5. The time now is 10:35 PM.