RPM :- Redhad Package Manager
rpm just install the single rpm file. It does not take care of dependency packages.
yum take care of denpendency packages.
ftp = vsftpd-2.2.2-11.el6.x86_64.rpm
yum take care of denpendency packages.
ftp = vsftpd-2.2.2-11.el6.x86_64.rpm
apache server = httpd-2.2.15-26.0.1.el6.x86_64.rpm
telnet = telnet-0.17-47.el6_3.1.x86_64.rpm
format:
--..rpm
RPM Features
Provides package management
Automatically verifies packages using GPG, MD5, SHA1SUMs
Automatically reports on unresolved dependencies.
format:
RPM Features
Provides package management
Install Remove or Uninstall Query Upgrade Verify
Find out the installed packages
rpm -qa-q = query package
-a = all installed packages
[root@oel11 yum.repos.d]# rpm -qa vsftpd
vsftpd-2.2.2-11.el6.x86_64
[root@oel11 yum.repos.d]# rpm -qa telnet
[root@oel11 yum.repos.d]#
Here vsftp returns packages that means this is installed on our server. In second command telnet doesnt returns any row and show not installed on the server.
Search specific rpm package
[root@oel11 yum.repos.d]# rpm -qa | grep vsftpvsftpd-2.2.2-11.el6.x86_64
[root@oel11 etc]# rpm -qa | grep httpd
httpd-manual-2.2.15-26.0.1.el6.noarch
httpd-tools-2.2.15-26.0.1.el6.x86_64
httpd-2.2.15-26.0.1.el6.x86_64
Get information about the package
rpm -qi httpd
rpm -qi httpd-2.2.15-26.0.1.el6.x86_64
[root@oel11 etc]# rpm -qi httpd-2.2.15-26.0.1.el6.x86_64
Name : httpd Relocations: (not relocatable)
Version : 2.2.15 Vendor: Oracle America
Release : 26.0.1.el6 Build Date: Sat 23 Feb 2013 01:32:52 AM IST
Install Date: Tue 28 Feb 2017 01:03:23 AM IST Build Host: ca-build44.us.oracle.com
Group : System Environment/Daemons Source RPM: httpd-2.2.15-26.0.1.el6.src.rpm
Size : 3074819 License: ASL 2.0
Signature : RSA/8, Sat 23 Feb 2013 01:33:03 AM IST, Key ID 72f97b74ec551f03
URL : http://httpd.apache.org/
Summary : Apache HTTP Server
Description :
The Apache HTTP Server is a powerful, efficient, and extensible
web server.
/etc/logrotate.d/vsftpd
/etc/pam.d/vsftpd
/etc/rc.d/init.d/vsftpd
/etc/vsftpd
/etc/vsftpd/ftpusers
/etc/vsftpd/user_list
/etc/vsftpd/vsftpd.conf
/etc/vsftpd/vsftpd_conf_migrate.sh
/usr/sbin/vsftpd
/usr/share/doc/vsftpd-2.2.2
/usr/share/doc/vsftpd-2.2.2/AUDIT
/usr/share/doc/vsftpd-2.2.2/BENCHMARKS
/usr/share/doc/vsftpd-2.2.2/BUGS
/usr/share/doc/vsftpd-2.2.2/COPYING
/usr/share/doc/vsftpd-2.2.2/Changelog
/usr/share/doc/vsftpd-2.2.2/EXAMPLE
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/INTERNET_SITE
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/INTERNET_SITE/README
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/INTERNET_SITE/README.configuration
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/INTERNET_SITE/vsftpd.conf
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/INTERNET_SITE/vsftpd.xinetd
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/INTERNET_SITE_NOINETD
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/INTERNET_SITE_NOINETD/README
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/INTERNET_SITE_NOINETD/README.configuration
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/INTERNET_SITE_NOINETD/vsftpd.conf
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/PER_IP_CONFIG
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/PER_IP_CONFIG/README
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/PER_IP_CONFIG/README.configuration
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/PER_IP_CONFIG/hosts.allow
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/README
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/VIRTUAL_HOSTS
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/VIRTUAL_HOSTS/README
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/VIRTUAL_USERS
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/VIRTUAL_USERS/README
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/VIRTUAL_USERS/README.configuration
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/VIRTUAL_USERS/logins.txt
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/VIRTUAL_USERS/vsftpd.conf
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/VIRTUAL_USERS/vsftpd.pam
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/VIRTUAL_USERS_2
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/VIRTUAL_USERS_2/README
/usr/share/doc/vsftpd-2.2.2/FAQ
/usr/share/doc/vsftpd-2.2.2/INSTALL
/usr/share/doc/vsftpd-2.2.2/LICENSE
/usr/share/doc/vsftpd-2.2.2/README
/usr/share/doc/vsftpd-2.2.2/README.security
/usr/share/doc/vsftpd-2.2.2/REWARD
/usr/share/doc/vsftpd-2.2.2/SECURITY
/usr/share/doc/vsftpd-2.2.2/SECURITY/DESIGN
/usr/share/doc/vsftpd-2.2.2/SECURITY/IMPLEMENTATION
/usr/share/doc/vsftpd-2.2.2/SECURITY/OVERVIEW
/usr/share/doc/vsftpd-2.2.2/SECURITY/TRUST
/usr/share/doc/vsftpd-2.2.2/SIZE
/usr/share/doc/vsftpd-2.2.2/SPEED
/usr/share/doc/vsftpd-2.2.2/TODO
/usr/share/doc/vsftpd-2.2.2/TUNING
/usr/share/doc/vsftpd-2.2.2/vsftpd.xinetd
/usr/share/man/man5/vsftpd.conf.5.gz
/usr/share/man/man8/vsftpd.8.gz
/var/ftp
/var/ftp/pub
-i = Install the rpm
-v = verbose
-h = display progress
- first identify where the package exists.
- linux media contains all the packages. user can download it from internet or linux dvd.
- rpm does not install the dependency packages. for this we use yum.
-e = Erase the package. just give package name without ".rmp"
rpm -e vsftpd
or
rpm -e vsftpd-2.2.2-11.el6.x86_64
rpm -qa vsftpd
service sshd start
rpm -qi httpd-2.2.15-26.0.1.el6.x86_64
[root@oel11 etc]# rpm -qi httpd-2.2.15-26.0.1.el6.x86_64
Name : httpd Relocations: (not relocatable)
Version : 2.2.15 Vendor: Oracle America
Release : 26.0.1.el6 Build Date: Sat 23 Feb 2013 01:32:52 AM IST
Install Date: Tue 28 Feb 2017 01:03:23 AM IST Build Host: ca-build44.us.oracle.com
Group : System Environment/Daemons Source RPM: httpd-2.2.15-26.0.1.el6.src.rpm
Size : 3074819 License: ASL 2.0
Signature : RSA/8, Sat 23 Feb 2013 01:33:03 AM IST, Key ID 72f97b74ec551f03
URL : http://httpd.apache.org/
Summary : Apache HTTP Server
Description :
The Apache HTTP Server is a powerful, efficient, and extensible
web server.
List all files from the package
[root@oel11 yum.repos.d]# rpm -ql vsftpd-2.2.2-11.el6.x86_64/etc/logrotate.d/vsftpd
/etc/pam.d/vsftpd
/etc/rc.d/init.d/vsftpd
/etc/vsftpd
/etc/vsftpd/ftpusers
/etc/vsftpd/user_list
/etc/vsftpd/vsftpd.conf
/etc/vsftpd/vsftpd_conf_migrate.sh
/usr/sbin/vsftpd
/usr/share/doc/vsftpd-2.2.2
/usr/share/doc/vsftpd-2.2.2/AUDIT
/usr/share/doc/vsftpd-2.2.2/BENCHMARKS
/usr/share/doc/vsftpd-2.2.2/BUGS
/usr/share/doc/vsftpd-2.2.2/COPYING
/usr/share/doc/vsftpd-2.2.2/Changelog
/usr/share/doc/vsftpd-2.2.2/EXAMPLE
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/INTERNET_SITE
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/INTERNET_SITE/README
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/INTERNET_SITE/README.configuration
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/INTERNET_SITE/vsftpd.conf
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/INTERNET_SITE/vsftpd.xinetd
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/INTERNET_SITE_NOINETD
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/INTERNET_SITE_NOINETD/README
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/INTERNET_SITE_NOINETD/README.configuration
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/INTERNET_SITE_NOINETD/vsftpd.conf
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/PER_IP_CONFIG
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/PER_IP_CONFIG/README
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/PER_IP_CONFIG/README.configuration
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/PER_IP_CONFIG/hosts.allow
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/README
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/VIRTUAL_HOSTS
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/VIRTUAL_HOSTS/README
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/VIRTUAL_USERS
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/VIRTUAL_USERS/README
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/VIRTUAL_USERS/README.configuration
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/VIRTUAL_USERS/logins.txt
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/VIRTUAL_USERS/vsftpd.conf
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/VIRTUAL_USERS/vsftpd.pam
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/VIRTUAL_USERS_2
/usr/share/doc/vsftpd-2.2.2/EXAMPLE/VIRTUAL_USERS_2/README
/usr/share/doc/vsftpd-2.2.2/FAQ
/usr/share/doc/vsftpd-2.2.2/INSTALL
/usr/share/doc/vsftpd-2.2.2/LICENSE
/usr/share/doc/vsftpd-2.2.2/README
/usr/share/doc/vsftpd-2.2.2/README.security
/usr/share/doc/vsftpd-2.2.2/REWARD
/usr/share/doc/vsftpd-2.2.2/SECURITY
/usr/share/doc/vsftpd-2.2.2/SECURITY/DESIGN
/usr/share/doc/vsftpd-2.2.2/SECURITY/IMPLEMENTATION
/usr/share/doc/vsftpd-2.2.2/SECURITY/OVERVIEW
/usr/share/doc/vsftpd-2.2.2/SECURITY/TRUST
/usr/share/doc/vsftpd-2.2.2/SIZE
/usr/share/doc/vsftpd-2.2.2/SPEED
/usr/share/doc/vsftpd-2.2.2/TODO
/usr/share/doc/vsftpd-2.2.2/TUNING
/usr/share/doc/vsftpd-2.2.2/vsftpd.xinetd
/usr/share/man/man5/vsftpd.conf.5.gz
/usr/share/man/man8/vsftpd.8.gz
/var/ftp
/var/ftp/pub
How to install package
rpm -ivh-i = Install the rpm
-v = verbose
-h = display progress
- first identify where the package exists.
- linux media contains all the packages. user can download it from internet or linux dvd.
- rpm does not install the dependency packages. for this we use yum.
How to upgrade package
rpm -qa vsftpd
rpm -Uvh vsftpd-2.2.2-11.el6.x86_64.rpm
Erase package
rpm -e-e = Erase the package. just give package name without ".rmp"
rpm -e vsftpd
or
rpm -e vsftpd-2.2.2-11.el6.x86_64
rpm -qa vsftpd
Check apache service status
service httpd statusStart and Enable SSH Server
chkconfig sshd onservice sshd start
Check port 22 is open
netstat -tulpn | grep :22
Start/ Stop/ Status iptables service
service iptables status
service iptables start
service iptables stop
No comments:
Post a Comment