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 need to upgrade a tarball which i have installed. Do I simply install the new version and it will automatically overwrite the files from the older version?
I know for rpm -Uvh can do that, but not sure tarball.
consider this, a tarball is just like a zip file. It's just a folder compressed into 1 file. So you are really not upgrading anything. It's the same as if you have a folder called "program1.0" and one called "program 1.1". You are going to delete the 1.0 one and replace it with 1.1. However, if within the tarball is an installer, then you've got a whole different issue.
The safe play is to read the INSTALL, README & CHANGELOG files for tips on upgrading, as well as what changed. "Usually" though, so long as you configure it the same way, ie same install prefix & etc etc (you can get the old info from the config.log, config.nice or some other file in the old source tree if you kept it), you can install one over the other without issue, if you stay within the same major release level. By that I mean most source is released as x.y.z where x = Major, y = Minor, & z = Revision. If that Major number changes then you should probably backup any config files for the app and uninstall it, then install the new version fresh and reference your old config files for setting it back up. Still though, don't just blindly follow that, take the time to read the docs.
But some (or most really) don't have a make uninstall and if you really want to do a clean upgrade you'll have to remove all old files by hand. This is why I only install packages (checkinstall is my best friend).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.