On Mon, Mar 31, 2003 at 11:14:27AM -0000, yuvaraj  k wrote:
> What is the deference between the .rpm file and .tar file

rpm (Redhat  Package Manager)  is a  package management  system
developed by RH folk. It is essentially a cpio archive to which
a header is  attached, which does things  like dependency check
etc. This  section can  be detached  with the  rpm2cpio utility
which would  leave the  cpio file behind,  which can  be broken
down into original component files with the cpio utility.

tar (Tape  Archive) is the  original POSIX  compliant archiving
tool and  is the defacto *nix  method of glueing necessary bits
together for archiving. Some distos like  Slack use this as the
distribution method. For that matter  even a .deb file (debian)
is  a  tar.gz file  only  with  few additional  files  attached
together by the ar (archiver) program.

> if we  installed .tar  package then how  to uninstall  the .tar
> file

If you  have installed a  binary tar.gz package  (normally done
from the root  (/) directory, the removal method  is as follows
(provided you have the original .tar.gz file with you):

tar -tzvf package.tar.gz > somefile.txt

Edit the file  somefile.txt. This will give a  listing of which
all files went where.

Make a small script  out of the same file, putting  a rm before
each line, do a chmod +x and run it with root privileges. e.g.

#!/bin/sh
rm /usr/local/bin/xxx
rm /usr/share/man/xxx.1
etc etc

HTH

Bish

--
:
####[ GNU/Linux One Stanza Tip (LOST) ]#######################

Sub : Linux Commands (#2)                            LOST #047

No consolidated command list. Use auto-completion.  Type a few
letters and press TAB & see what is available that starts with
some "string" ...  Try  $fi<TAB>      OR     $add<TAB>
Then to find more out about any of those: $man <command>
To find where a command/ binary is located: $which <command>
     
####<[EMAIL PROTECTED]>#####################################
:


-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to