Recent Changes - Search:

Softwares

.

InstallingRpmAndDebPackagesInRpmAndDebDistros


Installing Software in Linux .rpm and .deb distros

Find out software on the net.

Distribution Location

    Debian	                     http://packages.debian.org
    Ubuntu	                     http://packages.ubuntu.com

Redhat, Centos, Mandriva

   http://www.redhat.com/
   http://www.rpmfind.net/
   ftp://download.fedora.redhat.com/pub/fedora/linux/core/
   http://download.fedora.redhat.com/pub/fedora/linux/core/ 

Getting Software Using wget command

   # wget  http://url....1.rpm

   # wget http://url to .deb 

How To Install DEBs Manually

   # dpkg --install  ssh.1.2.deb  

   dpkg --install command to install the package.

Installing from CDROM..first mount the cdrom

  # mount /media/cdrom

  # cd /media/cdrom

  # dpkg --install  ssh.1.2.deb

  # cd /

  # umount /media/cdrom

  # eject cdrom

How to List Installed DEBs

  # dpkg --list

  # dpkg --list ssh

  # dpkg --list | grep ssh

Listing Files Associated with DEBs

  # dpkg --listfiles ssh

Listing Files in DEB Files

  # dpkg --contents ssh-i386.deb

Listing the DEB Package to Which a File Belongs

  # dpkg --search /etc/apt/sources.list

Uninstalling DEBs

  # dpkg --remove  ssh

How To Install RPMs Manually

  # rpm -Uvh  rpm_file_name.rpm   

The -U qualifier is used for updating an RPM to the latest version, the -h qualifier gives a list of hash # characters during the installation and the -v qualifier prints verbose status messages while the command is run.

  # # rpm -ivh  rpm_file_name.rpm 
  • i --> install

How to Install Source RPMs

  • Download the source RPMs - file extension ending with (.src.rpm)
  • Compiling and installing source RPMs
    1. rpmbuild --rebuild filename.src.rpm
  • The compiled RPM file can now be found in one of the architecture subdirectories under /usr/src/redhat/RPMS directory.
  • install the compiled RPMs
  • import their public encryption key
   # rpm --import http://url to the RPM-GPG-KEY
  • If you don't install the keys you'll get a DSA signature warning that alerts you to the fact that the RPM file might be bogus:

How to List Installed RPMs

  # rpm -qa|less

  # rpm -qa | grep -i ssh

Listing Files Associated with RPMs

  # rpm -q ssh  
  • You can use the -ql qualifier to list all the files associated with an installed RPM

Listing Files in RPM Files

  # rpm -qpl ssh.i386.rpm
  • You can use the -qpl qualifier to list all the files in an RPM archive to make sure before installing.

Listing the RPM to Which a File Belongs

  # rpm -qf /etc/passwd

Uninstalling RPMs

  # rpm -e ssh

Edit - History - Print - Recent Changes - Search
Page last modified on April 24, 2009, at 02:29 PM