LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-10-2010, 11:51 AM   #16
kryznic
LQ Newbie
 
Registered: Mar 2010
Posts: 18

Original Poster
Rep: Reputation: 0

Quote:
Originally Posted by arashi256 View Post
Well, we'd know for sure if I wasn't talking to myself and the OP had run "rpm -qi splunk" and told us the output...
Sorry, I missed your post.


Ok so no package installed. But this app runs. So I guess certain apps can be "installed" and run without being an actual package?

What I need is to find all the files this intall has has placed on the machine, is there a easy way to search for a specific file name?

And thank you for all the replies.
 
Old 03-10-2010, 11:55 AM   #17
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
Yes, you can run it, installing it puts it in a specific place you see so you don't have to navigate to the directory it is in. It also sets configuration files in certain places and so on, and so forth.

EDIT: Consider it as in Windows. You can run a standalone program easily. You can write a program easily. Installing it puts the program in a specific directory and adds it to the registry. It does the Linux equivalents here. You didn't install, you just ran it.

At the terminal type in
Code:
echo $PATH
These directories are where executables are saved to/moved to to enable you to just type in 'command' instead of doing the 'cd /command/path; ./command' dance you had to do.

But yes, type in
Code:
updatedb
locate *splunk*
to find it. Still, all you need to do is really delete than directory and its gone. Is there something thats making you think splunk has put something on there? Outside of this directory?

Last edited by jamescondron; 03-10-2010 at 11:56 AM. Reason: caveat
 
Old 03-10-2010, 11:59 AM   #18
kryznic
LQ Newbie
 
Registered: Mar 2010
Posts: 18

Original Poster
Rep: Reputation: 0
Well I'm not exactly sure how splunk works on this machine. I wanted to un/re install it because it won't work anymore. It runs like a local web page type of thing and it can't start a service called 'splunkd' so I was assuming it installed this on the machine. I may just blow away this virtual machine and start fresh.
 
Old 03-10-2010, 12:03 PM   #19
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
Personally, I'd make sure it wasn't running
Code:
ps aux|grep splunk
- If it was killing each instance

Then delete the directory, then install the package with yum. Easier than binning the whole thing.
 
Old 03-10-2010, 12:04 PM   #20
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 12.04 / CentOS 6.5
Posts: 394

Rep: Reputation: 61
Since the http://www.splunk.com/download URL contains a splunk RPM, I'd simply delete the directory where you installed it (presumably from the .tgz file rather than the rpm package available on their website) download the rpm and install with: -

rpm -ivh splunk-4.0.9-74233.i386.rpm

Job done. You don't need to worry about where it installs it, as the package will sort that out for you. And it's easily uninstalled if you so choose with: -

rpm -e splunk-4.0.9-74233

..or with whatever the output from "rpm -qi splunk" returns.
 
Old 03-10-2010, 12:05 PM   #21
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 12.04 / CentOS 6.5
Posts: 394

Rep: Reputation: 61
Quote:
Originally Posted by jamescondron View Post
Personally, I'd make sure it wasn't running
Code:
ps aux|grep splunk
- If it was killing each instance

Then delete the directory, then install the package with yum. Easier than binning the whole thing.
Indeedy

Although splunk isn't available from Fedora's repos, as I've just checked...hence my recommendation to install via the rpm package available on their website.
 
Old 03-10-2010, 12:22 PM   #22
kryznic
LQ Newbie
 
Registered: Mar 2010
Posts: 18

Original Poster
Rep: Reputation: 0
awesome thank you!

is there a way to be ROOT when I am trying to delete files or whatnot when using the GUI? Or must I be in Terminal?
 
Old 03-10-2010, 12:39 PM   #23
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
You can launch the GUI application from a root terminal.
 
Old 03-10-2010, 12:47 PM   #24
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 12.04 / CentOS 6.5
Posts: 394

Rep: Reputation: 61
Since, from your bash_history, you seem to have installed splunk to: - /home/kryznic/Downloads/opt/splunk/bin, you can run: -

cd ~/Downloads
rm -rf opt

...assuming that 'opt' has nothing else but splunk in it, else cd ~/Downloads/opt and do the rm thing again.

CAUTION: Make sure you're in the right directory when you do this (run 'pwd' to find out where you are) - it will not prompt you for deleting files, nor will you be able to retrieve them from the GNOME trash can if you do this, that directory and everything below it will be gone for good.
 
Old 03-10-2010, 01:20 PM   #25
kryznic
LQ Newbie
 
Registered: Mar 2010
Posts: 18

Original Poster
Rep: Reputation: 0
here's what I am attempting to do. I searched in the File Browser for files containing the word "splunk" I found many and want to delete them all but keeps telling me access denied. How can I gain access thru file browser?

Thanks fella's
 
Old 03-10-2010, 01:46 PM   #26
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 12.04 / CentOS 6.5
Posts: 394

Rep: Reputation: 61
From the looks of it, all splunk files should be in the directory you specified, which I mentioned above. I highly caution you about deleting files randomly from all parts of the filesystem - you'll most likely cause your system to become unstable at best and non-functional at worst. WHat makes you think that splunk files have been installed all over your filesystem?

As mentioned above, you should be able to run the GNOME nautilus file manager from root by simply running "nautilus" from your root account, although personally I've never tried this.
 
Old 03-10-2010, 02:51 PM   #27
kryznic
LQ Newbie
 
Registered: Mar 2010
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by arashi256 View Post
WHat makes you think that splunk files have been installed all over your filesystem?
This, and the fact that I still see files in other folders that are not located in the 'opt' folder.

[root@FedoraBox kryznic]# rpm -ivh splunk-4.0.9-74233.i386.rpm
warning: splunk-4.0.9-74233.i386.rpm: Header V3 DSA signature: NOKEY, key ID 653fb112
Preparing... ########################################### [100%]
package splunk-4.0.9-74233.i386 is already installed
[root@FedoraBox kryznic]#


I officially give up though, I am going to reinstall Fedora and start fresh. Thanks for all the help
 
Old 03-10-2010, 04:43 PM   #28
kryznic
LQ Newbie
 
Registered: Mar 2010
Posts: 18

Original Poster
Rep: Reputation: 0
well I dunno why, but I went into users and groups and found a splunk user, I deleted it and then ran rpm -ivh splunk-4.0.9-74233.i386.rpm and it re-installed splunk and now it works. That makes no sense to me.

Also, does rpm -ivh splunk-4.0.9-74233.i386.rpm actually install the package so that it could be removed through my package installer? I am still confused on how this works.

Thanks.
 
Old 03-10-2010, 05:53 PM   #29
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 12.04 / CentOS 6.5
Posts: 394

Rep: Reputation: 61
Quote:
Originally Posted by kryznic View Post
well I dunno why, but I went into users and groups and found a splunk user, I deleted it and then ran rpm -ivh splunk-4.0.9-74233.i386.rpm and it re-installed splunk and now it works. That makes no sense to me.

Also, does rpm -ivh splunk-4.0.9-74233.i386.rpm actually install the package so that it could be removed through my package installer? I am still confused on how this works.

Thanks.
Well, perhaps part of the check that RPM does to signify if splunk is installed is checking for the user for that application - since it was there, the new install failed, as it assumed correctly that splunk was already installed via another means.

As for packages, dude - you really need to read up on this stuff. It's not that hard. "man rpm" and "man yum" would be a good start and as they say, "Google is your friend" Anyhow - RPM -ivh is: -

i = install
v = verbose mode
h = show hash marks install progress

And yes, installing an RPM file via RPM adds this entry to the RPM database and because of this, allows you to uninstall it cleanly.

YUM is sorta a wrapper on top of RPM - it queries remote repositories of validated applications and installs them much like RPM files. One of the problems with RPM packages is that that RPM file might have dependencies that depend on other RPM packages, which you have to download manually and install first, the so-called "dependency hell". Yum handles this for you by downloading and installing any dependant packages from the remote repositories as well so you don't have to do it yourself. Always try "yum install <package name>" first. If it's not available in any of your remote repositories, them hunt down an RPM package file from the net and try that (and possibly any dependant RPM package files it needs). Lastly install from source using zipped source files. This usually allows various switches to the configure script to denote installation destination and various other things. You can then use make and make install to actually install the application. But this means you'll have to uninstall the application manaually, so make a note of where you installed it.
That's vaguely it anyways.

All this stuff can be researched on the net. Good luck.
 
Old 03-11-2010, 09:18 AM   #30
kryznic
LQ Newbie
 
Registered: Mar 2010
Posts: 18

Original Poster
Rep: Reputation: 0
Arashi, thank you. Your right I do have to read up and I will be doing so. I just had a little panic attack here and I was getting frustrated working on this for the past few days. Thanks for everyone's help and patience. I leave this thread having gained some valuable linux info.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
can't uninstall package pru Linux - Software 2 03-12-2008 03:56 AM
how to uninstall a package vshenoy Linux - Newbie 2 04-29-2006 04:35 PM
Uninstall Linux Package Orac Linux - Software 5 10-25-2005 10:14 PM
Uninstall package after compile? mijohnst Linux - Newbie 1 06-14-2004 09:53 PM
RH 8.0 package uninstall Sargek Linux - Software 5 01-05-2003 11:37 AM


All times are GMT -5. The time now is 10:28 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration