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
# 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
How to Install Source RPMs
# rpm --import http://url to the RPM-GPG-KEY
How to List Installed RPMs
# rpm -qa|less # rpm -qa | grep -i ssh
Listing Files Associated with RPMs
# rpm -q ssh
Listing Files in RPM Files
# rpm -qpl ssh.i386.rpm
Listing the RPM to Which a File Belongs
# rpm -qf /etc/passwd
Uninstalling RPMs
# rpm -e ssh