[root@yumserver ~]# yum repolist
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
repo id repo name status
1 rhel6 3,819
epel Extra Packages for Enterprise Linux 6 – x86_64 12,125
puppetlabs-deps Puppet Labs Dependencies El 6 – x86_64 77
puppetlabs-products Puppet Labs Products El 6 – x86_64 546
repolist: 16,567
[root@yumserver ~]# ls -l /etc/yum.repos.d/
total 24
-rw-r–r–. 1 root root 957 Nov 4 2012 epel.repo
-rw-r–r–. 1 root root 1056 Nov 4 2012 epel-testing.repo
-rw-r–r–. 1 root root 60 Oct 24 00:42 my.repo
-rw-r–r–. 1 root root 1250 Aug 25 2014 puppetlabs.repo
-rw-r–r–. 1 root root 358 Mar 26 11:17 redhat.repo
-rw-r–r–. 1 root root 529 Jun 12 2015 rhel-source.repo
[root@yumserver ~]# cat /etc/yum.repos.d/my.repo
[1]
name=rhel6
baseurl=file:///mnt/iso
enabled=1
gpgcheck=0
[root@yumserver ~]# yum list openssh
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Installed Packages
openssh.x86_64 5.3p1-112.el6_7 @rhel-6-server-eus-rpms
[root@yumserver ~]# yum search openssh
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
============================================================= N/S Matched: openssh =============================================================
openssh-askpass.x86_64 : A passphrase dialog for OpenSSH and X
perl-Net-OpenSSH.noarch : Perl SSH client package implemented on top of OpenSSH
razorqt-openssh-askpass.x86_64 : Razor-qt openssh ask password interface
gsi-openssh.x86_64 : An implementation of the SSH protocol with GSI authentication
gsi-openssh-clients.x86_64 : SSH client applications with GSI authentication
gsi-openssh-server.x86_64 : SSH server daemon with GSI authentication
openssh.x86_64 : An open source implementation of SSH protocol versions 1 and 2
openssh-clients.x86_64 : An open source SSH client applications
openssh-server.x86_64 : An open source SSH server daemon
rssh.x86_64 : Restricted shell for use with OpenSSH, allowing only scp and/or sftp
Name and summary matches only, use “search all” for everything.
[root@yumserver ~]# yum info openssh
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Installed Packages
Name : openssh
Arch : x86_64
Version : 5.3p1
Release : 112.el6_7
Size : 769 k
Repo : installed
From repo : rhel-6-server-eus-rpms
Summary : An open source implementation of SSH protocol versions 1 and 2
URL : http://www.openssh.com/portable.html
License : BSD
Description : SSH (Secure SHell) is a program for logging into and executing
: commands on a remote machine. SSH is intended to replace rlogin and
: rsh, and to provide secure encrypted communications between two
: untrusted hosts over an insecure network. X11 connections and
: arbitrary TCP/IP ports can also be forwarded over the secure channel.
:
: OpenSSH is OpenBSD’s version of the last free version of SSH, bringing
: it up to date in terms of security and features.
:
: This package includes the core files necessary for both the OpenSSH
: client and server. To make this package useful, you should also
: install openssh-clients, openssh-server, or both.
[root@yumserver ~]# yum list installed | grep openssh
openssh.x86_64 5.3p1-112.el6_7 @rhel-6-server-eus-rpms
openssh-askpass.x86_64 5.3p1-112.el6_7 @rhel-6-server-eus-rpms
openssh-clients.x86_64 5.3p1-112.el6_7 @rhel-6-server-eus-rpms
openssh-server.x86_64 5.3p1-112.el6_7 @rhel-6-server-eus-rpms
[root@yumserver ~]# yum list installed | grep nmap
[root@yumserver ~]# rpm -qa nmap
[root@yumserver ~]# yum install nmap
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package nmap.x86_64 2:5.51-4.el6 will be installed
–> Finished Dependency Resolution
Dependencies Resolved
================================================================================================================================================
Package Arch Version Repository Size
================================================================================================================================================
Installing:
nmap x86_64 2:5.51-4.el6 1 2.8 M
Transaction Summary
================================================================================================================================================
Install 1 Package(s)
Total download size: 2.8 M
Installed size: 9.7 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : 2:nmap-5.51-4.el6.x86_64 1/1
Verifying : 2:nmap-5.51-4.el6.x86_64 1/1
Installed:
nmap.x86_64 2:5.51-4.el6
Complete!
[root@yumserver ~]# yum list installed | grep nmap
nmap.x86_64 2:5.51-4.el6 @1
[root@yumserver ~]# yum info nmap
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Installed Packages
Name : nmap
Arch : x86_64
Epoch : 2
Version : 5.51
Release : 4.el6
Size : 9.7 M
Repo : installed
From repo : 1
Summary : Network exploration tool and security scanner
URL : http://nmap.org/
License : GPLv2 and LGPLv2+ and GPLv2+ and BSD
Description : Nmap is a utility for network exploration or security auditing. It supports
: ping scanning (determine which hosts are up), many port scanning techniques
: (determine what services the hosts are offering), and TCP/IP fingerprinting
: (remote host operating system identification). Nmap also offers flexible target
: and port specification, decoy scanning, determination of TCP sequence
: predictability characteristics, reverse-identd scanning, and more. In addition
: to the classic command-line nmap executable, the Nmap suite includes a flexible
: data transfer, redirection, and debugging tool (netcat utility ncat), a utility
: for comparing scan results (ndiff), and a packet generation and response analysis
: tool (nping).
[root@yumserver ~]# rpm -qa nmap
nmap-5.51-4.el6.x86_64
[root@yumserver ~]# rpm -qi nmap
Name : nmap Relocations: (not relocatable)
Version : 5.51 Vendor: Red Hat, Inc.
Release : 4.el6 Build Date: Monday 05 May 2014 10:05:47 AM PDT
Install Date: Saturday 26 March 2016 11:10:33 PM PDT Build Host: x86-027.build.eng.bos.redhat.com
Group : Applications/System Source RPM: nmap-5.51-4.el6.src.rpm
Size : 10153226 License: GPLv2 and LGPLv2+ and GPLv2+ and BSD
Signature : RSA/8, Wednesday 04 June 2014 12:13:21 PM PDT, Key ID 199e2f91fd431d51
Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL : http://nmap.org/
Summary : Network exploration tool and security scanner
Description :
Nmap is a utility for network exploration or security auditing. It supports
ping scanning (determine which hosts are up), many port scanning techniques
(determine what services the hosts are offering), and TCP/IP fingerprinting
(remote host operating system identification). Nmap also offers flexible target
and port specification, decoy scanning, determination of TCP sequence
predictability characteristics, reverse-identd scanning, and more. In addition
to the classic command-line nmap executable, the Nmap suite includes a flexible
data transfer, redirection, and debugging tool (netcat utility ncat), a utility
for comparing scan results (ndiff), and a packet generation and response analysis
tool (nping).
[root@yumserver ~]# yum remove nmap
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Remove Process
Resolving Dependencies
–> Running transaction check
—> Package nmap.x86_64 2:5.51-4.el6 will be erased
–> Finished Dependency Resolution
Dependencies Resolved
================================================================================================================================================
Package Arch Version Repository Size
================================================================================================================================================
Removing:
nmap x86_64 2:5.51-4.el6 @1 9.7 M
Transaction Summary
================================================================================================================================================
Remove 1 Package(s)
Installed size: 9.7 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Erasing : 2:nmap-5.51-4.el6.x86_64 1/1
Verifying : 2:nmap-5.51-4.el6.x86_64 1/1
Removed:
nmap.x86_64 2:5.51-4.el6
Complete!
[root@yumserver ~]# rpm -qa nmap
[root@yumserver ~]# yum list installed | grep nmap
[root@yumserver ~]# cd /mnt/iso/Packages/
[root@yumserver Packages]# ls -l | grep nmap
-r–r–r–. 102 root root 2884084 Jun 4 2014 nmap-5.51-4.el6.x86_64.rpm
[root@yumserver Packages]# rpm -ivh nmap*
Preparing… ########################################### [100%]
1:nmap ########################################### [100%]
[root@yumserver Packages]# rpm -qa nmap
nmap-5.51-4.el6.x86_64
[root@yumserver ~]# yum list installed | grep nmap
[root@yumserver ~]# yum list | grep nmap
nmap.x86_64 2:5.51-4.el6 1
[root@yumserver ~]# yum update nmap
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
ID | Login user | Date and time | Action(s) | Altered
——————————————————————————-
8 | root <root> | 2016-03-26 23:15 | Erase | 1
7 | root <root> | 2016-03-26 23:10 | Install | 1
6 | root <root> | 2016-03-24 06:15 | Install | 3
5 | root <root> | 2016-03-24 06:02 | Install | 1
4 | root <root> | 2016-03-24 05:04 | I, U | 2
3 | <mohammedrafi> | 2015-11-06 17:45 | I, U | 54
2 | <mohammedrafi> | 2015-11-06 17:28 | Install | 13 <
1 | System <unset> | 2015-10-24 05:44 | Install | 957 >
Warning: RPMDB altered outside of yum.
history list
