How do I uninstall a tarball with directories? With no uninstall script
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.
EDIT: I just grabbed it and ran a tar tvf to see the files it would extract.
/usr/share/doc tree is a big hint
/usr/share/doc/SpiderOakONE/Getting Started Guide.pdf is probably the next big thing to look at here
I don't have any experience with that software package. They also do have release notes on their website. You probably should peruse those as well.
Hope this helps.
Older part of my reply:
Well you can get a further listing of the files by using the -R switch on the ls command.
Are there any hidden files? Have you performed ls -a to see if there is a .readme or other dot type of file that perhaps offers some more details?
What about the website where you downloaded this from? No instructions or anything?
I wouldn't do anything with it unless I fully understood exactly what I was supposed to do.
Is this for Slackware? If so, I can move it to that forum to get the perspectives from that team. Maybe my lack of familiarity with Slackware is an obvious detractor here.
EDIT: I just grabbed it and ran a tar tvf to see the files it would extract.
/usr/share/doc tree is a big hint
/usr/share/doc/SpiderOakONE/Getting Started Guide.pdf is probably the next big thing to look at here
I don't have any experience with that software package. They also do have release notes on their website. You probably should peruse those as well.
Hope this helps.
Older part of my reply:
Well you can get a further listing of the files by using the -R switch on the ls command.
Are there any hidden files? Have you performed ls -a to see if there is a .readme or other dot type of file that perhaps offers some more details?
What about the website where you downloaded this from? No instructions or anything?
I wouldn't do anything with it unless I fully understood exactly what I was supposed to do.
Is this for Slackware? If so, I can move it to that forum to get the perspectives from that team. Maybe my lack of familiarity with Slackware is an obvious detractor here.
I just visited the site again. The release notes are a list product releases.
Also, there are no instructions on the site on how to uninstall it. I guess they figure if we're using linux, we should know everything. LOL.
Anyway, deleting it won't be much of a chore since everything is contained in folders. I just have to carefully delete them.
PS: I'm not using slackware. That's all they had for a tarball.
Quote:
Originally Posted by fatmac
Do you trust that website that you got it from, if not, why did you download it.
If you don't know what it does, don't extract it.
SpiderOak was once in the repos of pclinuxOS. It's not there anymore.
SpiderOak is a cloud backup tool
Last edited by TheGeniusLOL; 10-31-2018 at 11:16 AM.
If you still have the "make" directory, you can run "make uninstall" as root. I'm not sure it will remove everything, but it should be a good start.
Or you could recreate the "make directory" and run "make uninstall." I don't know whether you'd have to go through "configure" and "make" again.
There is no make directory nor any source files. All files are already pre-compiled binaries.
After careful consideration, I decided not to install the program. I will use dropbox instead for backing up non-sensitive trivial files like some junk files and my shell scripts.
From the directory where you extracted SpiderOakONE-7.3.0-slack_tar_x64.tgz, make a log of the files within it, like so:
Code:
find etc opt usr ! -type d | sed 's:^:/:' > ~/SpiderOakONE-7.3.0-install.log
After reviewing that log file (~/SpiderOakONE-7.3.0-install.log) with ‘less’ to make sure it lists nothing odd and does not have clashes with existing files on your system, you can install the package via this method:
All files (and symlinks) that were included could be removed in this way but not directories. They were intentionally omitted from the log, since they may have been shared with other software previously present on your system. For the most part, empty directories cause no problems and generally have negligible space requirements. So you could just ignore them.
But… if you are the type of person who feels ‘uncomfortable’ with a non-pristine system, the obvious non-shared directories for SpiderOakONE 7.3.0 are “/opt/SpiderOakONE” and its sub-directories, plus “/usr/share/doc/SpiderOakONE”. You could get rid of them with this command:
Last edited by ruario; 11-23-2018 at 05:51 AM.
Reason: Simplified the cpio command; named the install log more appropriately; more about empty directories; safe rmdir
If you want something a touch fancier or find yourself in similar situations in the future, I have a small shell script I wrote for tracking stuff I build from source, that works using these principles. It also works for repacking binaries: createpkg.
If you wanted to use it, you would need a “BUILD” file. This should do the job:
EDIT: I just grabbed it and ran a tar tvf to see the files it would extract.
/usr/share/doc tree is a big hint
/usr/share/doc/SpiderOakONE/Getting Started Guide.pdf is probably the next big thing to look at here
I don't have any experience with that software package. They also do have release notes on their website. You probably should peruse those as well.
Hope this helps.
Sadly, that guide (which is very short and just a collection of a few links) and the release notes on their website are not remotely helpful with regards to how to install/remove this package when using the tar archive.
FWIW, I wrote a script to make a better, generic Spider Oak ONE tarball package with clear install and uninstall directions. Whilst it is nice that they have a package for non deb/rpm distros, it should be something useable directly otherwise people on those distros might as well just unpack the deb or rpm and place things manually, thus the tar would serve no purpose.
I'm SpiderOak's release engineer, thank you for the time and dedication to do this, I really appreciate it. It isn't trivial for us to include this immediately in our build process due to the many complexities surrounding it, but I will push to see this fixed ASAP!
[EDIT]: There are some references on their website to the currently offered tar package being a 'Slackware package' but it is not a valid Slackware package in terms of naming, layout and (lack of) meta data. So for my own attempt I didn't even bother trying to make it a valid Slackware package. I just made it nice and generic, so that it benefits as many as possible. Someone will make a SlackBuild and stick it on SBo if this software of interest to Slackware users. Hell, I might even do it myself if I get another free moment.
Yeah, it'll work but why would you zcat it? The common versions of tar GNU and BSD (and even busybox tar) have had support for auto-detecting compression type and handling it from well over a decade. You know this person is using a Linux distro and it is highly unlikely to be so old or so far off the mainstream that it does not have a version of GNU tar (as its default tar), that can handle this. Just do a "tar tf /path/to/SpiderOakONE-7.3.0-slack_tar_x64.tgz". Yours feels like the zcat equivalent of "Useless Use of Cat".
Sorry don't mean to be overly critical, it is a good, simple solution! It is just a pet peeve of mine that people give overly complex tar commands and this adds to tar's mystery and makes it intimidating for new (and sometimes older) users. It also means that people struggle to remember the commands. Case in point, this joke.
Tar does not have to be hard to use. With modern versions (i.e. the default version of tar that you will find on every single, modern Linux distribution), you can just do the following.
To list the contents of a tar archive:
Code:
tar tf archive
(t = Table of contents [a.k.a 'list'], f = [archive] File)
To extract the contents of an archive:
Code:
tar xf archive
(x = eXtract, f = [archive] File)
To create a tar archive:
Code:
tar caf archive [files]
(c = Create, a = Automatically compress [based on extension], f = [archive] File)
This will cover 90+% of people's usage of tar. If they want something more or fancier, they can read the manual.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.