LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-29-2017, 08:56 AM   #1
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 789

Rep: Reputation: Disabled
Determine name of installed package


How does one determine the command name of an installed package?

For instance, after installing the below, I would have expected it to be nmap-ncat, but it is really ncat or nc.

Thanks

Code:
[michael@box1 ~]$ sudo yum install nmap-ncat.x86_64
[sudo] password for michael:
Loaded plugins: fastestmirror
base                                                                                                                                               | 3.6 kB  00:00:00
epel/x86_64/metalink                                                                                                                               |  13 kB  00:00:00
epel                                                                                                                                               | 4.3 kB  00:00:00
extras                                                                                                                                             | 3.4 kB  00:00:00
gitlab_gitlab-ee/x86_64/signature                                                                                                                  |  836 B  00:00:00
gitlab_gitlab-ee/x86_64/signature                                                                                                                  | 1.0 kB  00:00:00 !!!
gitlab_gitlab-ee-source/signature                                                                                                                  |  836 B  00:00:00
gitlab_gitlab-ee-source/signature                                                                                                                  |  951 B  00:00:00 !!!
influxdb                                                                                                                                           | 2.5 kB  00:00:00
mariadb                                                                                                                                            | 2.9 kB  00:00:00
remi-php71                                                                                                                                         | 2.9 kB  00:00:00
remi-safe                                                                                                                                          | 2.9 kB  00:00:00
updates                                                                                                                                            | 3.4 kB  00:00:00
(1/4): epel/x86_64/updateinfo                                                                                                                      | 797 kB  00:00:00
(2/4): epel/x86_64/primary_db                                                                                                                      | 4.8 MB  00:00:00
(3/4): influxdb/7/x86_64/primary_db                                                                                                                |  20 kB  00:00:00
(4/4): updates/7/x86_64/primary_db                                                                                                                 | 7.8 MB  00:00:00
(1/2): gitlab_gitlab-ee-source/primary                                                                                                             |  175 B  00:00:00
(2/2): gitlab_gitlab-ee/x86_64/primary                                                                                                             | 1.0 MB  00:00:00
Determining fastest mirrors
 * base: mirror.cs.uwp.edu
 * epel: mirror.rnet.missouri.edu
 * extras: mirrors.usinternet.com
 * remi-php71: repo1.dal.innoscale.net
 * remi-safe: repo1.dal.innoscale.net
 * updates: bay.uchicago.edu
gitlab_gitlab-ee                                                                                                                                                  261/261
Resolving Dependencies
--> Running transaction check
---> Package nmap-ncat.x86_64 2:6.40-7.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==========================================================================================================================================================================
 Package                                   Arch                                   Version                                      Repository                            Size
==========================================================================================================================================================================
Installing:
 nmap-ncat                                 x86_64                                 2:6.40-7.el7                                 base                                 201 k

Transaction Summary
==========================================================================================================================================================================
Install  1 Package

Total download size: 201 k
Installed size: 414 k
Is this ok [y/d/N]: y
Downloading packages:
nmap-ncat-6.40-7.el7.x86_64.rpm                                                                                                                    | 201 kB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 2:nmap-ncat-6.40-7.el7.x86_64                                                                                                                          1/1
  Verifying  : 2:nmap-ncat-6.40-7.el7.x86_64                                                                                                                          1/1

Installed:
  nmap-ncat.x86_64 2:6.40-7.el7

Complete!
[michael@box1 ~]$
 
Old 07-29-2017, 09:01 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 20,775

Rep: Reputation: 7059Reputation: 7059Reputation: 7059Reputation: 7059Reputation: 7059Reputation: 7059Reputation: 7059Reputation: 7059Reputation: 7059Reputation: 7059Reputation: 7059
there is no such thing. I mean for example the base package contains a lot of commands. Others contain a toolset, and finally the creator of the package can give any name (s)he wants.
 
Old 07-29-2017, 09:51 AM   #3
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 789

Original Poster
Rep: Reputation: Disabled
Thanks pan64. Gotcha. How can one tell what commands come with a package?
 
Old 07-29-2017, 09:56 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,492

Rep: Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639
Commands :

RPM package : $ rpm -ql <package-name> | grep bin





-

Last edited by knudfl; 07-29-2017 at 09:57 AM.
 
1 members found this post helpful.
Old 07-29-2017, 09:52 PM   #5
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
You can also look in the documentation for the package.
 
Old 07-29-2017, 10:50 PM   #6
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 789

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by AwesomeMachine View Post
You can also look in the documentation for the package.
Wish I could! But how do I find the documentation?

man nmap-ncat.x86_64?
man nmap-ncat?

Nope
 
Old 07-30-2017, 03:56 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,492

Rep: Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639
$ man nc
$ man ncat

Code:
$ rpm -ql nmap-ncat

/usr/bin/nc
/usr/bin/ncat
/usr/share/doc/nmap-ncat-6.40
/usr/share/doc/nmap-ncat-6.40/AUTHORS
/usr/share/doc/nmap-ncat-6.40/COPYING
/usr/share/doc/nmap-ncat-6.40/README
/usr/share/doc/nmap-ncat-6.40/THANKS
/usr/share/doc/nmap-ncat-6.40/examples
/usr/share/doc/nmap-ncat-6.40/examples/README
/usr/share/doc/nmap-ncat-6.40/examples/ipaccess
/usr/share/doc/nmap-ncat-6.40/examples/logs
/usr/share/doc/nmap-ncat-6.40/examples/logs/ascii-output
/usr/share/doc/nmap-ncat-6.40/examples/logs/hex-output
/usr/share/doc/nmap-ncat-6.40/examples/scripts
/usr/share/doc/nmap-ncat-6.40/examples/scripts/README
/usr/share/doc/nmap-ncat-6.40/examples/scripts/http-proxy
/usr/share/doc/nmap-ncat-6.40/examples/scripts/http-scan
/usr/share/doc/nmap-ncat-6.40/examples/scripts/http-scan/README
/usr/share/doc/nmap-ncat-6.40/examples/scripts/http-scan/get.request
/usr/share/doc/nmap-ncat-6.40/examples/scripts/http-scan/iplist
/usr/share/doc/nmap-ncat-6.40/examples/scripts/http-scan/scan-example
/usr/share/doc/nmap-ncat-6.40/examples/scripts/http-scan/scanner-output
/usr/share/man/man1/nc.1.gz
/usr/share/man/man1/ncat.1.gz
 
Old 07-30-2017, 04:37 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 20,775

Rep: Reputation: 7059Reputation: 7059Reputation: 7059Reputation: 7059Reputation: 7059Reputation: 7059Reputation: 7059Reputation: 7059Reputation: 7059Reputation: 7059Reputation: 7059
Quote:
Originally Posted by NotionCommotion View Post
Wish I could! But how do I find the documentation?
man pages available on the net, and that package also have a homepage.
https://linux.die.net/man/1/nc
https://nmap.org/ncat/
You can always google...

Last edited by pan64; 07-30-2017 at 04:38 AM.
 
Old 07-30-2017, 06:29 AM   #9
Trihexagonal
Member
 
Registered: Jul 2017
Posts: 362
Blog Entries: 1

Rep: Reputation: 334Reputation: 334Reputation: 334Reputation: 334
Netcat Users' Guide

You risk opening a hole on your system fiddling around with programs you don't understand like netcat.

Last edited by Trihexagonal; 07-30-2017 at 07:10 AM.
 
Old 07-30-2017, 08:06 AM   #10
tshikose
Member
 
Registered: Apr 2010
Location: Kinshasa, Democratic Republic of Congo
Distribution: RHEL, Fedora, CentOS
Posts: 525

Rep: Reputation: 95
Quote:
Originally Posted by NotionCommotion View Post
Wish I could! But how do I find the documentation?

man nmap-ncat.x86_64?
man nmap-ncat?

Nope
Code:
rpm -qd nmap-ncat
 
Old 07-30-2017, 08:11 AM   #11
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Quote:
Originally Posted by NotionCommotion View Post
Wish I could! But how do I find the documentation?
/usr/share/doc
 
Old 07-30-2017, 08:13 AM   #12
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Quote:
Originally Posted by Trihexagonal View Post
You risk opening a hole on your system fiddling around with programs you don't understand like netcat.
I think it might suffice to say not to use netcat over the public Internet.
 
Old 07-30-2017, 08:37 AM   #13
Trihexagonal
Member
 
Registered: Jul 2017
Posts: 362
Blog Entries: 1

Rep: Reputation: 334Reputation: 334Reputation: 334Reputation: 334
Quote:
Originally Posted by AwesomeMachine View Post
I think it might suffice to say not to use netcat over the public Internet.
It would suffice, I only told them why it's not a good idea.
 
Old 07-31-2017, 08:09 AM   #14
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 789

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Trihexagonal View Post
Netcat Users' Guide

You risk opening a hole on your system fiddling around with programs you don't understand like netcat.
Quote:
Originally Posted by AwesomeMachine View Post
I think it might suffice to say not to use netcat over the public Internet.
Quote:
Originally Posted by Trihexagonal View Post
It would suffice, I only told them why it's not a good idea.
Never, or not until the program is understood? Any specific vulnerabilities one should be on the lookout for? Thanks
 
Old 07-31-2017, 10:09 AM   #15
Trihexagonal
Member
 
Registered: Jul 2017
Posts: 362
Blog Entries: 1

Rep: Reputation: 334Reputation: 334Reputation: 334Reputation: 334
Quote:
Originally Posted by NotionCommotion View Post
Never, or not until the program is understood? Any specific vulnerabilities one should be on the lookout for? Thanks
I was referring to opening ports. Ports you might not be aware you're opening that someone could access and looking out for your best interest.

If I were you I would study docs thoroughly to become familiar with its many functions before using it.

In addition to the Users Guide I linked to, where they reference it as "your network Swiss Army knife", there are several articles online about its use. This is just one:

http://xmodulo.com/useful-netcat-examples-linux.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
libtiff.so.4, how do i determine what RPM package it is in. mickeyboa Fedora 5 02-14-2011 02:19 PM
BASH: Determine what package manager to use worm5252 Programming 4 06-30-2010 07:09 AM
Determine what files are in what package? encomium Slackware 11 04-30-2009 04:59 PM
RPM package manager says package needs to be installed. But I already installed it! nick623 Linux - Software 2 05-24-2005 02:15 AM
How do you determine which package owns a particular file? davidas Debian 2 04-05-2004 06:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration