package management

[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&gt;
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 remove nmap

[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

[root@yumserver ~]# yum history
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
[root@yumserver ~]# yum provides */whois
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.
irssi-0.8.15-5.el6.x86_64 : Modular text mode IRC client with Perl scripting
Repo        : 1
Matched from:
Filename    : /usr/share/irssi/help/whois
jwhois-4.0-19.el6.x86_64 : Internet whois/nicname client
Repo        : 1
Matched from:
Filename    : /usr/bin/whois
ircd-hybrid-7.3.1-2.el6.x86_64 : Internet Relay Chat Server
Repo        : epel
Matched from:
Filename    : /usr/share/ircd-hybrid/help/opers/whois
[root@yumserver ~]# rpm -qa whois
[root@yumserver ~]# whois yahoo.com
-bash: whois: command not found
[root@yumserver ~]# yum install jwhois-4.0-19.el6.x86_64
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 jwhois.x86_64 0:4.0-19.el6 will be installed
–> Finished Dependency Resolution
Dependencies Resolved
================================================================================================================================================
 Package                           Arch                              Version                                 Repository                    Size
================================================================================================================================================
Installing:
 jwhois                            x86_64                            4.0-19.el6                              1                            104 k
Transaction Summary
================================================================================================================================================
Install       1 Package(s)
Total download size: 104 k
Installed size: 294 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Installing : jwhois-4.0-19.el6.x86_64                                                                                                     1/1
  Verifying  : jwhois-4.0-19.el6.x86_64                                                                                                     1/1
Installed:
  jwhois.x86_64 0:4.0-19.el6
Complete!
[root@yumserver ~]# whois yahoo.com
[Querying whois.verisign-grs.com]
[Redirected to whois.markmonitor.com]
[Querying whois.markmonitor.com]
[whois.markmonitor.com]
Domain Name: yahoo.com
Registry Domain ID: 3643624_DOMAIN_COM-VRSN
Registrar WHOIS Server: whois.markmonitor.com
Updated Date: 2015-08-26T15:30:44-0700
Creation Date: 1995-01-18T00:00:00-0800
Registrar Registration Expiration Date: 2023-01-18T21:00:00-0800
Registrar: MarkMonitor, Inc.
Registrar IANA ID: 292
Registrar Abuse Contact Email: abusecomplaints@markmonitor.com
Registrar Abuse Contact Phone: +1.2083895740
Domain Status: clientUpdateProhibited (https://www.icann.org/epp#clientUpdateProhibited)
Domain Status: clientTransferProhibited (https://www.icann.org/epp#clientTransferProhibited)
Domain Status: clientDeleteProhibited (https://www.icann.org/epp#clientDeleteProhibited)
Domain Status: serverUpdateProhibited (https://www.icann.org/epp#serverUpdateProhibited)
Domain Status: serverTransferProhibited (https://www.icann.org/epp#serverTransferProhibited)
Domain Status: serverDeleteProhibited (https://www.icann.org/epp#serverDeleteProhibited)
Registry Registrant ID:
Registrant Name: Domain Administrator
Registrant Organization: Yahoo! Inc.
Registrant Street: 701 First Avenue
Registrant City: Sunnyvale
Registrant State/Province: CA
Registrant Postal Code: 94089
Registrant Country: US
Registrant Phone: +1.4083493300
Registrant Phone Ext:
Registrant Fax: +1.4083493301
Registrant Fax Ext:
Registrant Email: domainadmin@yahoo-inc.com
Registry Admin ID:
Admin Name: Domain Administrator
Admin Organization: Yahoo! Inc.
Admin Street: 701 First Avenue
Admin City: Sunnyvale
Admin State/Province: CA
Admin Postal Code: 94089
Admin Country: US
Admin Phone: +1.4083493300
Admin Phone Ext:
Admin Fax: +1.4083493301
Admin Fax Ext:
Admin Email: domainadmin@yahoo-inc.com
Registry Tech ID:
Tech Name: Domain Administrator
Tech Organization: Yahoo! Inc.
Tech Street: 701 First Avenue
Tech City: Sunnyvale
Tech State/Province: CA
Tech Postal Code: 94089
Tech Country: US
Tech Phone: +1.4083493300
Tech Phone Ext:
Tech Fax: +1.4083493301
Tech Fax Ext:
Tech Email: domainadmin@yahoo-inc.com
Name Server: ns5.yahoo.com
Name Server: ns3.yahoo.com
Name Server: ns4.yahoo.com
Name Server: ns1.yahoo.com
Name Server: ns2.yahoo.com
DNSSEC: unsigned
URL of the ICANN WHOIS Data Problem Reporting System: http://wdprs.internic.net/
>>> Last update of WHOIS database: 2016-03-26T23:32:02-0700 <<<
The Data in MarkMonitor.com’s WHOIS database is provided by MarkMonitor.com for
information purposes, and to assist persons in obtaining information about or
related to a domain name registration record.  MarkMonitor.com does not guarantee
its accuracy.  By submitting a WHOIS query, you agree that you will use this Data
only for lawful purposes and that, under no circumstances will you use this Data to:
 (1) allow, enable, or otherwise support the transmission of mass unsolicited,
     commercial advertising or solicitations via e-mail (spam); or
 (2) enable high volume, automated, electronic processes that apply to
     MarkMonitor.com (or its systems).
MarkMonitor.com reserves the right to modify these terms at any time.
By submitting this query, you agree to abide by this policy.
MarkMonitor is the Global Leader in Online Brand Protection.
MarkMonitor Domain Management(TM)
MarkMonitor Brand Protection(TM)
MarkMonitor AntiPiracy(TM)
MarkMonitor AntiFraud(TM)
Professional and Managed Services
Visit MarkMonitor at http://www.markmonitor.com
Contact us at +1.8007459229
In Europe, at +44.02032062220
For more information on Whois status codes, please visit
 https://www.icann.org/resources/pages/epp-status-codes-2014-06-16-en
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s