How do i download and run NMAP from Linode?

I am new to Linux, and i downloaded and installed Linode, but i must have forgotten a step to download NMAP and Glish. Is there a way to check or download NMAP though Linode as NetworkChuck did?

7 Replies

Depending on your distro, you should be able to install nmap with your package manager. For Debian/Ubuntu, that would be apt-get(8):

sudo apt-get install nmap

For other distros, you use yum, dnf, pacman, zypper, etc. Which one you use depends on the distro you have.

glish is part of the web interface at cloud.linode.com. You don't need to install it on your Linode.

-- sw

Thank you, i realized that i didn't launch the control DUH.

Ok, so I was able to download NMAP, but when I ran it, my results came back as NMAP may have been blocked. I am using Verizon Fios. Any ideas?

I don't understand… Were you trying to scan your local machine from your Linode…or vice versa?

-- sw

Thanks [@stevewi] (/community/user/stevewi) , I am also trying to do the same process. I have a Devian 10 Linode build, and I am trying to run the command "apt install nmap -y" and I get a error "Unable to locate package nmap". If you have any ideas or insight I would appreciate. Also trying to run a port scan from a external machine to my local machine to determine if i have any security issues. Thanks much appreciated.

@mysteryr - I spun up a new Debian 10 Linode and was able to replicate the error you're seeing. You'll need to run apt-get update && apt-get upgrade first. Once I ran those, I was able to run apt install nmap -y successfully.

Here's what I get:

stevewi@dave:~$ lsb_release -a
No LSB modules are available.
Distributor ID:    Debian
Description:    Debian GNU/Linux 10 (buster)
Release:    10
Codename:    buster

stevewi@dave:~$ apt-cache search nmap
...
nmap - The Network Mapper
nmap-common - Architecture independent files for nmap
...

stevewi@dave:~$ sudo apt install nmap --dry-run
[sudo] password for stevewi: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libblas3 libgfortran5 liblinear3 nmap-common
Suggested packages:
  liblinear-tools liblinear-dev ncat ndiff zenmap
The following NEW packages will be installed:
  libblas3 libgfortran5 liblinear3 nmap nmap-common
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Inst libgfortran5 (8.3.0-6 Debian:10.8/stable [amd64])
Inst libblas3 (3.8.0-2 Debian:10.8/stable [amd64])
Inst liblinear3 (2.1.0+dfsg-4 Debian:10.8/stable [amd64])
Inst nmap-common (7.70+dfsg1-6+deb10u1 Debian:10.8/stable [all])
Inst nmap (7.70+dfsg1-6+deb10u1 Debian:10.8/stable [amd64])
Conf libgfortran5 (8.3.0-6 Debian:10.8/stable [amd64])
Conf libblas3 (3.8.0-2 Debian:10.8/stable [amd64])
Conf liblinear3 (2.1.0+dfsg-4 Debian:10.8/stable [amd64])
Conf nmap-common (7.70+dfsg1-6+deb10u1 Debian:10.8/stable [all])
Conf nmap (7.70+dfsg1-6+deb10u1 Debian:10.8/stable [amd64])

`
Here's the contents of /etc/apt/sources.list:

# deb cdrom:[Debian GNU/Linux 10.0.0 _Buster_ - Official amd64 NETINST 20190706-
10:23]/ buster main

#deb cdrom:[Debian GNU/Linux 10.0.0 _Buster_ - Official amd64 NETINST 20190706-1
0:23]/ buster main

deb http://mirrors.linode.com/debian buster main
deb-src http://mirrors.linode.com/debian buster main

deb http://mirrors.linode.com/debian-security buster/updates main
deb-src http://mirrors.linode.com/debian-security buster/updates main

# buster-updates, previously known as 'volatile'
deb http://mirrors.linode.com/debian buster-updates main
deb-src http://mirrors.linode.com/debian buster-updates main

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.

Maybe, as @jyoo suggests, you need to update first? Or, maybe you forgot to run your command(s) as the super-user:

sudo apt update -y && sudo apt install nmap -y

-- sw

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct