also @ TechSpot: HDD supply to recover by Q3 2012, prices to remain high
Welcome to the TechSpot OpenBoards. Please read the FAQ if you have any questions. Sign up or Login to participate.

Go Back   TechSpot OpenBoards > Software > The Alternative OS

Collaborate in the cloud with Office, Exchange, SharePoint, and Lync

uninstalling a program

Thread Tools Search this Thread
  #1  
Old 09-22-2003
gsgleason's Avatar
TechSpot Member
 
Location: Denver, CO, USA
Member since: Aug 2003, 53 posts
uninstalling a program

When one uninstalls an rpm, I read that one uses the rpm command and option -e.

Should I be in the directory where I originally saved the rpm? I installed AIM and want to remove it. I renamed the rpm /root/downloads/aim.rpm before I ran the install. From /root/downlods/ can I type rpm -e aim.rpm to remove it?
  #2  
Old 09-22-2003
Phantasm66's Avatar
TechSpot Evangelist
 
Location: Glasgow, Scotland
Member since: Feb 2002, 6,504 posts
nope, you can uninstall it from anywhere.

rpm -e packagename

I usually query it first:

rpm -q packagename

you don't need the .rpm extension, as well I think.
  #3  
Old 09-22-2003
Nodsu's Avatar
TechSpot Evangelist
 
Location: Estonia
Member since: Feb 2002, 9,431 posts
System specs
Removal from RPM database has nothing to do with the original RPM file. You just query with rpm -q to make sure you are uninstalling the right thing and then do rpm -e. And yes, the rpm extension (and maybe also a big part of the RPM file name) is not needed, actually it will not work.
  #4  
Old 09-22-2003
Phantasm66's Avatar
TechSpot Evangelist
 
Location: Glasgow, Scotland
Member since: Feb 2002, 6,504 posts
Quote:
Originally posted by Nodsu
Removal from RPM database has nothing to do with the original RPM file.

Yes, that's entirely correct.


BUT, just as an aside, I believe that if you have installed from pure source code (you'd know, believe me, you'd have downloaded a tar.gz file and ran ./configure, make, make install, etc) that you can run "make uinstall" from inside the original source code folder in order to uninstall, so in that similar case the original files DO have relevance.

But not for RPMs. You just uninstall them with the command line -e flag.
  #5  
Old 09-23-2003
gsgleason's Avatar
TechSpot Member
 
Location: Denver, CO, USA
Member since: Aug 2003, 53 posts
I actually have downloaded some tar.gz files for flashplayer plugin for mozilla, and some other things, but I don't know what to do with them.
  #6  
Old 09-23-2003
gsgleason's Avatar
TechSpot Member
 
Location: Denver, CO, USA
Member since: Aug 2003, 53 posts
for instance, here's linux headquarters instructins for installing GAIM.

tar -xvzf gaim-0.10.3.tar.gz
cd gaim-0.10.3
./configure
make
make install

Is that all I have to type? I would like to understand what I'm actually doing, and not just blindly type commands.

When you uncompress a tar.gz file, does it matter where you extract the contents? When I did it with MozillaFirebird, and the flash player plugin, it make a new directory in the directory I was in. I was in /root/dls (my downloads directory) and when I ran the tar -xvzf command, it put it in /root/dls/MozillaFirebird. I would imagine I don't want the program files in /root

is there a linux equivalent of a "program files" directory, like in windows? Should I have been in a different working diretory when I uncompressed that tar.gz file?

I have so many questions!! Linux is befuddling to a newb.

Last edited by gsgleason; 09-23-2003 at 10:06 AM..
  #7  
Old 09-23-2003
Mictlantecuhtli's Avatar
TechSpot Special Forces
 
Location: Finland
Member since: Feb 2002, 4,886 posts
System specs
Quote:
Originally posted by gsgleason
tar -xvzf gaim-0.10.3.tar.gz
Uncompresses package. Uses tar's internal gunzip ability, another way would be gunzip gaim-0.10.3.tar.gz and then tar xfv gaim-0.10.3.tar. Unix packages are often compressed so that first files are packed together without compression using tar (tape archiver), then compressed using gzip or bzip2 (better compression).
Quote:
cd gaim-0.10.3
Goes to gaim-0.10.3 directory. Hint: If you want to know where you are, set the prompt to show your current directory by setting prompt variable to $PWD like this: export PS1='$PWD>'.
Quote:
./configure
Prepares the source code for compiling. You can check options and other parameters with ./configure --help. The reason for using ./ in the beginning is that Unix doesn't check the current directory for commands by default, only directories defined in $PATH environment variable.
Quote:
make
Compiles the package - "makes" the executable out of the source code.
Quote:
make install
Installs the package, ie. copies necessary files to proper directories, usually under /usr/local.
Quote:
When you uncompress a tar.gz file, does it matter where you extract the contents? When I did it with MozillaFirebird, and the flash player plugin, it make a new directory in the directory I was in. I was in /root/dls (my downloads directory) and when I ran the tar -xvzf command, it put it in /root/dls/MozillaFirebird. I would imagine I don't want the program files in /root

is there a linux equivalent of a "program files" directory, like in windows? Should I have been in a different working diretory when I uncompressed that tar.gz file?
tar zxfv uncompresses files to the current directory. There's not really an equivalent for Program Files, but I'd say the closest would be /usr. In the end, it's up to you where you stack your files. Just remember if you're root and install apps to /root, then common users can't access them (access is denied to /root).
Quote:
I have so many questions!! Linux is befuddling to a newb.
That's how it usually is in the beginning
  #8  
Old 09-23-2003
gsgleason's Avatar
TechSpot Member
 
Location: Denver, CO, USA
Member since: Aug 2003, 53 posts
so once I uncompress it and configure and make it and all that, and it puts stuff in /usr/local or wherever, are the contents of the directory to which I originally uncompressed the tar.gz file now not needed?
  #9  
Old 09-23-2003
Mictlantecuhtli's Avatar
TechSpot Special Forces
 
Location: Finland
Member since: Feb 2002, 4,886 posts
System specs
They're not necessary unless the application has an option "make uninstall" and you want to remove the application properly in the future.
  #10  
Old 09-23-2003
Nodsu's Avatar
TechSpot Evangelist
 
Location: Estonia
Member since: Feb 2002, 9,431 posts
System specs
Actually, unless you customise the make procedure yourself, you can remove the application later on by extracting the tarball and running "make uninstall".

So removing the directory is OK, it is a good idea to leave the tarball somewhere though.
  #11  
Old 09-23-2003
gsgleason's Avatar
TechSpot Member
 
Location: Denver, CO, USA
Member since: Aug 2003, 53 posts
What is a tarball?
  #12  
Old 09-24-2003
Nodsu's Avatar
TechSpot Evangelist
 
Location: Estonia
Member since: Feb 2002, 9,431 posts
System specs
A tarball is a common way of distributing files in the Unix world. It is usually a directory concatenated into a tar file and then compressed with either compress, gzip or bzip2. These are the .tar.gz, .tgz, .tar.bz2, tar.z etc. files.
Closed Thread

Similar Topics
Topic Replies Forum
Microsoft Office Not Running or Uninstalling - No Add/Remove Program Button 11 Windows OS
Uninstalling Fedora... 2 The Alternative OS
Uninstalling internal gfx first? 3 Audio and Video
uninstalling 5 Other Hardware
Uninstalling Nortan 3 Windows OS

Thread Tools Search this Thread
Search this Thread:

Advanced Search
All times are GMT -4. The time now is 10:26 AM.