-
Installation and Uninstallation from RPM:
RPM is a pre-compiled binary for linux (similar
to setup file in windows). Install RPMS by using command rpm as:
# rpm -ivh gaim-0.81-0.rpm
Here options are
: 'i' for 'i'nstall; 'v' for 'v'erbose and 'h' for hashing
It will install
the software named 'gaim'. If it will ask for some dependency, then first
install the 'rpm' which provides that dependency. Use google to find which 'rpm'
which rpm will provide the dependency.
To uninstall, you should first
know which rpm is to be uninstall. To find that, type
# rpm -aq | grep gaim
Here options are: 'a'
for 'a'll and 'q' for 'q'uery. i.e. "rpm -aq" first finds all the rpms installed
on the computer. Then "grep gaim" will filter the rpms having name "gaim". If
you dont know what the "grep" do, please read "Basic Command In
Linux" first.
The output of this command will be something
like
gaim-0.81-0
Now to uninstall 'gaim', type
# rpm -e gaim-0.81-0
Option 'e' is for
'e'rase.
- If you run across a file that you don't recognize. To find out which
package owns it, you would do:
# rpm -qf
/usr/X11R6/bin/xjewel
The output would be sometime like:
xjewel-1.6-1
- If you find a new koules RPM, but you don't know what it is. To find out
some information on it, do:
# rpm -qpi
koules-1.2-2.i386.rpm
The output would
be:
Name :
koules
Distribution: Red Hat Linux Colgate
Version :
1.2
Vendor: Red Hat Software
Release :
2
Build Date: Mon Sep 02 11:59:12 1996
Install date:
(none)
Build Host: porky.redhat.com
Group :
Games
Source RPM:
koules-1.2-2.src.rpm
Size :
614939
Summary : SVGAlib action game with
multiplayer, network, and sound support
Description :
This arcade-style
game is novel in conception and excellent in execution.
No shooting, no
blood, no guts, no gore. The play is simple, but you
still must develop
skill to play. This version uses SVGAlib to
run on a graphics
console.
- If you wants to see what files the koules RPM installs. You would do:
# rpm -qpl
koules-1.2-2.i386.rpm
The output
is:
/usr/doc/koules
/usr/doc/koules/ANNOUNCE
/usr/doc/koules/BUGS
/usr/doc/koules/COMPILE.OS2
/usr/doc/koules/COPYING
/usr/doc/koules/Card
/usr/doc/koules/ChangeLog
/usr/doc/koules/INSTALLATION
/usr/doc/koules/Icon.xpm
/usr/doc/koules/Icon2.xpm
/usr/doc/koules/Koules.FAQ
/usr/doc/koules/Koules.xpm
/usr/doc/koules/README
/usr/doc/koules/TODO
/usr/games/koules
/usr/games/koules.svga
/usr/games/koules.tcl
/usr/man/man6/koules.svga.6
- Installation and Uninstallation Using Source
Steps for
installation:
1) Source Code always come in
.tar.gz or .tar.bz2 format. First unpak the source code. If you dont know how to
unpack it, please read "Basic Commands in
Linux" first. e.g. If you want to install mplayer using source code, unpack
it as
# tar -jxvf
MPlayer-1.0pre5.tar.bz2
2) Now change the dirctory to Source Code.
i.e.
# cd MPlayer-1.0pre5
3)
Now you must see a file name "configure"
in that directory (type ls to see that).
If this file is absent, that means it is not the source code. If the file is
there, type
# ./configure
This will
check your system configuration. If it fails, see the error (which is mostly due
to some dependency) , first install the dependency and then try again. This
command "configure" will make the file
named "Makefile".
4) Type
#
make
This will compile the package.
5) Type
# make install
This will install the
package.
6) You can delete the source code now.
Steps for uninstallation:
You can uninstall
the package installed using source code by the same source code.
1) Unpack
the source code in same directory from where you have installed it. e.g. If you
have installed MPlayer from directory having absoulte path as
"/extra/multimedia/MPlayer-1.0pre5", then you should uninstall it from the same
directory.
2) Type
# ./configure
If you have given some options to "./configure" during installtion, you must give
the same options here.
3) Type
#
make
4) Type
# make
uninstall
5) Now you can delete the source code.