Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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....
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.