0% found this document useful (0 votes)
96 views4 pages

RPM

The document discusses RPM (Red Hat Package Management) and how to install, manage, and uninstall packages using RPM commands. It also covers installing packages from source code by downloading the source, configuring it for the system, compiling the code, and installing the compiled files. Key RPM commands covered are rpm, yum, and commands for installing, querying, updating, removing, and listing files in packages.

Uploaded by

mahesh2013
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
96 views4 pages

RPM

The document discusses RPM (Red Hat Package Management) and how to install, manage, and uninstall packages using RPM commands. It also covers installing packages from source code by downloading the source, configuring it for the system, compiling the code, and installing the compiled files. Key RPM commands covered are rpm, yum, and commands for installing, querying, updating, removing, and listing files in packages.

Uploaded by

mahesh2013
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

******************** RPM ( Red Hat Package Management ) *****************

In windows we need .exe. file to be install the software. and for linux if we want to run the .exe
file we need ( emulator called Wine ) Wine is a emulator to run the .exe files in Linux. moreover
the package is not stable but the good one is # crossover it is a commercial package.

** We can install Packages in Linux by 3 ways.

1) RPM
2) Source Code
3) SRPM
4) YUM
Our todays task is to install the rdesktop in linux called as remote desktop.

Note = Around 700 and above rpms packages are bydefault installed in linux.

# ls /bin/rpm ( It is a utility for RPM )

# rpm -i rdesktop-1.6.0-8.rpm ( this is used for install the package )


OR
# rpm -ivh rdesktop-1.6.0-8.rpm
i = install
v = verbose
h = hash database it means data sort

# rpm -qa | grep -i rdesktop (to check the Package is installed or not )

Note = To convert the code in to the byte code called as a compilation.

gcc = is a compiler to convert in the code in to the machine language.

# rpm -e and package name ( this command is used for remove the package )

# rpm -qpl glibc-2.3.2-11.9.i386.rpm ( This command is use to list the files under the package
before Installation)

# rpm -ql glibc-2.3.2-11.9.i386.rpm ( This command is use to list the files under the package
before Installation )

How to Upgrade the Package


# rpm -Uvh and upgraded package name.

# rpm -ivh --force to install the package forcefully.

# rpm -qi Package Name ( To get the Package in for action )


qi stands for query for the Packages
Note = RPM maintains its own database

Where is the RPM database is located ?


# ls -al /var/lib/rpm/Packages

# rpm --rebuilddb ( is rebuild the Package )

# There are 3 sites to download the rpm and source code download sites

http://rpm.pbone.net/
http://www.rpmseek.com/index.html
http://www.filewatcher.com/

************ OS ARCHITECTURE ***********

How to find OS version ?

64 bit OR 32 bit
# uname -a ( to get the OS version )
i386, i586 and i686 all thease versions are 32 bit OS

and x86_64 ( This means 64 bit OS )

wget
ftp://ftp.gmd.de/mirrors3/ftp.linuxppc.org/contrib/sources/Applications/Multimedia/xmms_speake
rs-2.0-1.src.rpm

This command is use for download the package through command line.

# rpm -ivh --nodeps Package Name ( This command will install the package without
dependencies but we do not use this command is use for install the packages )

# rpm -ivh --nodeps xyz...doc and Package Name ( it is usefull to ignore unwanted
dependencies )

************* Source Code Installation ***********


Package Name “apache_1.3.41.tar.bz2”

Source and Tarball Install both are same.

wget http://archive.apache.org/dist/httpd/httpd-2.2.24.tar.bz2 ( download from this location )

# tar -jxvf httpd-2.2.24.tar.bz2

( Note = Package Customization it is the advantage of Source code Installation )

# ./configure
# make
# make install

All three steps are source code Installation steps all these called as auto config way.

Note = When ever we get the error called gcc then we have to install the package via # yum
install gcc ( YUM stands for Yellowdog Updater, Modified )

# ./configure ( it does or checks the dependencies in the File Systems and reconstruct the
make file )

# make ( This is the actually compiling Or compilation )


It refers make file and compiles the modules with the help of “gcc” tool and all binary stores in
the RAM.

# make install ( This command will write and sync compiled files from memory to Hard Disk )

This command stores the files in /usr/local/apache2 and go to bin/ directory

inside the we can start the httpd service for example ./httpd -k start

# echo $? ( this command shows the value of last command run successfully Or not If the
command was successful then the value of the command is 0 and If the value comes above 0
then the command was unsuccessful )

# ./configure --enable=php --enable=java --disable=auth


# ./configure --help ( we can see what what packages needs to be enable and after that run the
command successful Or not # echo $? )

# To uninstall Source Code


# go to /usr/local/apache2 and run # rm -fr apache2 Or # make unistall httpd

To check installation Process Or steps refer 2 files ( readme Or Install )


RPM --- Advantage -- it maintains own database and easy to manage
---Disadvantage --- We can not Customize.

Source Code --- Advantage --- We can customize the package.


--- Disadvantage --- We can not manage easly.

But we will get the good performance to run the Server.

SRPM -- In this we will get Source code + compile + rpm build…..rpm

You might also like