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
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
07-29-2017, 08:56 AM
#1
Member
Registered: Aug 2012
Posts: 789
Rep:
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 ~]$
07-29-2017, 09:01 AM
#2
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 20,775
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.
07-29-2017, 09:51 AM
#3
Member
Registered: Aug 2012
Posts: 789
Original Poster
Rep:
Thanks pan64. Gotcha. How can one tell what commands come with a package?
07-29-2017, 09:56 AM
#4
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,492
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.
07-29-2017, 09:52 PM
#5
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
You can also look in the documentation for the package.
07-29-2017, 10:50 PM
#6
Member
Registered: Aug 2012
Posts: 789
Original Poster
Rep:
Quote:
Originally Posted by
AwesomeMachine
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
07-30-2017, 03:56 AM
#7
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,492
$ 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
07-30-2017, 04:37 AM
#8
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 20,775
Quote:
Originally Posted by
NotionCommotion
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 .
07-30-2017, 06:29 AM
#9
Member
Registered: Jul 2017
Posts: 362
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 .
07-30-2017, 08:06 AM
#10
Member
Registered: Apr 2010
Location: Kinshasa, Democratic Republic of Congo
Distribution: RHEL, Fedora, CentOS
Posts: 525
Rep:
Quote:
Originally Posted by
NotionCommotion
Wish I could! But how do I find the documentation?
man nmap-ncat.x86_64?
man nmap-ncat?
Nope
07-30-2017, 08:11 AM
#11
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
Quote:
Originally Posted by
NotionCommotion
Wish I could! But how do I find the documentation?
/usr/share/doc
07-30-2017, 08:13 AM
#12
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
Quote:
Originally Posted by
Trihexagonal
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.
07-30-2017, 08:37 AM
#13
Member
Registered: Jul 2017
Posts: 362
Quote:
Originally Posted by
AwesomeMachine
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.
07-31-2017, 08:09 AM
#14
Member
Registered: Aug 2012
Posts: 789
Original Poster
Rep:
Quote:
Originally Posted by
Trihexagonal
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
I think it might suffice to say not to use netcat over the public Internet.
Quote:
Originally Posted by
Trihexagonal
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
07-31-2017, 10:09 AM
#15
Member
Registered: Jul 2017
Posts: 362
Quote:
Originally Posted by
NotionCommotion
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
All times are GMT -5. The time now is 01:16 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News