Downloads of v 3.6.4:


Last Update:

23 May 2021

Package Maintainer(s):

Software Author(s):

  • Nethack Developers


nethack game rogue roguelike rogue-like

Nethack - Single Player Dungeon Exploration

This is not the latest version of Nethack - Single Player Dungeon Exploration available.

  • 1
  • 2
  • 3

3.6.4 | Updated: 23 May 2021



Downloads of v 3.6.4:



Software Author(s):

  • Nethack Developers

  • 1
  • 2
  • 3
Nethack - Single Player Dungeon Exploration 3.6.4

This is not the latest version of Nethack - Single Player Dungeon Exploration available.

  • 1
  • 2
  • 3

Some Checks Have Failed or Are Not Yet Complete

Not All Tests Have Passed

Validation Testing Passed

Verification Testing Passed


Scan Testing Resulted in Flagged as a Note:

At least one file within this package has greater than 0 detections, but less than 5

Learn More

Deployment Method: Individual Install, Upgrade, & Uninstall

To install Nethack - Single Player Dungeon Exploration, run the following command from the command line or from PowerShell:


To upgrade Nethack - Single Player Dungeon Exploration, run the following command from the command line or from PowerShell:


To uninstall Nethack - Single Player Dungeon Exploration, run the following command from the command line or from PowerShell:


Deployment Method:

📝 NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Enter Your Internal Repository Url

(this should look similar to

2. Setup Your Environment

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

2. Get the package into your environment

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Copy Your Script

choco upgrade nethack -y --source="'INTERNAL REPO URL'" --version="'3.6.4'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:

choco upgrade nethack -y --source="'INTERNAL REPO URL'" --version="'3.6.4'" 

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0

Exit $exitCode

- name: Install nethack
    name: nethack
    version: '3.6.4'
    state: present

See docs at

chocolatey_package 'nethack' do
  action    :install
  source   'INTERNAL REPO URL'
  version  '3.6.4'

See docs at

cChocoPackageInstaller nethack
    Name     = "nethack"
    Version  = "3.6.4"
    Source   = "INTERNAL REPO URL"

Requires cChoco DSC Resource. See docs at

package { 'nethack':
  ensure   => '3.6.4',
  provider => 'chocolatey',
  source   => 'INTERNAL REPO URL',

Requires Puppet Chocolatey Provider module. See docs at

4. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package was approved as a trusted package on 23 May 2021.


NetHack is a single player dungeon exploration game that runs on a wide variety of computer systems, with a variety of
graphical and text interfaces all using the same game engine. Unlike many other Dungeons & Dragons-inspired games,
the emphasis in NetHack is on discovering the detail of the dungeon and not simply killing everything in sight - in
fact, killing everything in sight is a good way to die quickly. Each game presents a different landscape - the random
number generator provides an essentially unlimited number of variations of the dungeon and its denizens to be
discovered by the player in one of a number of characters: you can pick your race, your role, and your gender.


Package Parameters

The following package parameter can be set:

  • /AddToDesktop - add desktop shortcuts for Nethack. By default the shortcuts will be added for all users
    e.g. choco install nethack --package-parameters="/AddToDesktop"
  • /AddToStartMenu - add entries to the Start Menu for Nethack. By default the shortcut will be added for
    all users e.g. choco install nethack --package-parameters="/AddToStartMenu"
  • /User - where the user parameter is specified any shortcuts created (using /AddToDesktop or /AddToStartMenu)
    will only be added for the current user
    e.g. choco install nethack --package-parameters="/AddToDesktop /User"

To have Chocolatey remember parameters on upgrade, be sure to set choco feature enable -n=useRememberedArgumentsForUpgrades.


  • Two versions of Nethack will be installed by the package - Nethack and Nethack Classic. The underlying game engine
    is the same but Nethack presents a Windows interface with graphical tiles while Nethack Classic provides the traditional
    console experience
  • This package is automatically updated using the Chocolatey Automatic Package Update Model (AU).
    If you find it is out of date by more than a day or two, please contact the maintainer(s) and let them know the package is no longer updating correctly.

                    (Copyright 1989 M. Stephenson)

               (Based on the BISON general public license,
                   copyright 1988 Richard M. Stallman)

 Everyone is permitted to copy and distribute verbatim copies of this
 license, but changing it is not allowed.  You can also use this wording to
 make the terms for other programs.

  The license agreements of most software companies keep you at the mercy of
those companies.  By contrast, our general public license is intended to give
everyone the right to share NetHack.  To make sure that you get the rights we
want you to have, we need to make restrictions that forbid anyone to deny you
these rights or to ask you to surrender the rights.  Hence this license

  Specifically, we want to make sure that you have the right to give away
copies of NetHack, that you receive source code or else can get it if you
want it, that you can change NetHack or use pieces of it in new free
programs, and that you know you can do these things.

  To make sure that everyone has such rights, we have to forbid you to
deprive anyone else of these rights.  For example, if you distribute copies
of NetHack, you must give the recipients all the rights that you have.  You
must make sure that they, too, receive or can get the source code.  And you
must tell them their rights.

  Also, for our own protection, we must make certain that everyone finds out
that there is no warranty for NetHack.  If NetHack is modified by someone
else and passed on, we want its recipients to know that what they have is
not what we distributed.

  Therefore we (Mike Stephenson and other holders of NetHack copyrights) make
the following terms which say what you must do to be allowed to distribute or
change NetHack.

                        COPYING POLICIES

  1. You may copy and distribute verbatim copies of NetHack source code as
you receive it, in any medium, provided that you keep intact the notices on
all files that refer to copyrights, to this License Agreement, and to the
absence of any warranty; and give any other recipients of the NetHack
program a copy of this License Agreement along with the program.

  2. You may modify your copy or copies of NetHack or any portion of it, and
copy and distribute such modifications under the terms of Paragraph 1 above
(including distributing this License Agreement), provided that you also do the

    a) cause the modified files to carry prominent notices stating that you
    changed the files and the date of any change; and

    b) cause the whole of any work that you distribute or publish, that in
    whole or in part contains or is a derivative of NetHack or any part
    thereof, to be licensed at no charge to all third parties on terms
    identical to those contained in this License Agreement (except that you
    may choose to grant more extensive warranty protection to some or all
    third parties, at your option)

    c) You may charge a distribution fee for the physical act of
    transferring a copy, and you may at your option offer warranty protection
    in exchange for a fee.

  3. You may copy and distribute NetHack (or a portion or derivative of it,
under Paragraph 2) in object code or executable form under the terms of
Paragraphs 1 and 2 above provided that you also do one of the following:

    a) accompany it with the complete machine-readable source code, which
    must be distributed under the terms of Paragraphs 1 and 2 above; or,

    b) accompany it with full information as to how to obtain the complete
    machine-readable source code from an appropriate archive site.  (This
    alternative is allowed only for noncommercial distribution.)

For these purposes, complete source code means either the full source
distribution as originally released over Usenet or updated copies of the
files in this distribution used to create the object code or executable.

  4. You may not copy, sublicense, distribute or transfer NetHack except as
expressly provided under this License Agreement.  Any attempt otherwise to
copy, sublicense, distribute or transfer NetHack is void and your rights to
use the program under this License agreement shall be automatically
terminated.  However, parties who have received computer software programs
from you with this License Agreement will not have their licenses terminated
so long as such parties remain in full compliance.

Stated plainly:  You are permitted to modify NetHack, or otherwise use parts
of NetHack, provided that you comply with the conditions specified above;
in particular, your modified NetHack or program containing parts of NetHack
must remain freely available as provided in this License Agreement.  In
other words, go ahead and share NetHack, but don't try to stop anyone else
from sharing it farther.

Verification is intended to assist the Chocolatey moderators and community
in verifying that this package's contents are trustworthy.

The application has been downloaded from the official distribution and can
be verified by:

1. Go to the binary distribution page

and download the archive using the 'Download this file' link
on the page.

Alternatively the archive can be downloaded directly from

2. The archive can be validated by comparing checksums
  - Use powershell function 'Get-Filehash' - Get-Filehash -algorithm sha256
  - Use chocolatey utility 'checksum.exe'  - checksum -t sha256 -f

  Type:     sha256
  Checksum: 88B72D74B4D67AE4E960690AE5E9646989D5D98E609BA97F4A4281DD7D3123D9

Contents of file LICENSE.txt is obtained from
$ErrorActionPreference = 'Stop'

$nethackLink        = 'Nethack.lnk'
$nethackClassicLink = 'Nethack (Classic).lnk'

$desktop         = [Environment]::GetFolderPath('Desktop')
$commonDesktop   = [Environment]::GetFolderPath('CommonDesktopDirectory')
$startMenu       = [Environment]::GetFolderPath('StartMenu')
$commonStartMenu = [Environment]::GetFolderPath('CommonStartMenu')

$paths = @(
  (Join-Path $desktop $nethackLink),
  (Join-Path $desktop $nethackClassicLink),
  (Join-Path $commonDesktop $nethackLink),
  (Join-Path $commonDesktop $nethackClassicLink),
  (Join-Path $startMenu 'NetHack' | Join-Path -childpath $nethackLink),
  (Join-Path $startMenu 'NetHack' | Join-Path -childpath $nethackClassicLink),
  (Join-Path $startMenu 'NetHack'),
  (Join-Path $commonStartMenu 'NetHack' | Join-Path -childpath $nethackLink),
  (Join-Path $commonStartMenu 'NetHack' | Join-Path -childpath $nethackClassicLink)
  (Join-Path $commonStartMenu 'NetHack')

$paths.GetEnumerator() | ForEach-Object {
  if (Test-Path -Path $_) {
    Remove-Item $_ -ErrorAction SilentlyContinue -Force | Out-Null
$ErrorActionPreference = 'Stop'

$toolsDir = Split-Path -parent $MyInvocation.MyCommand.Definition
$archive  = Join-Path $toolsDir ''

$unzipArgs = @{
  PackageName  = $env:ChocolateyPackageName
  FileFullPath = $archive
  Destination  = $toolsDir

Get-ChocolateyUnzip @unzipArgs

$pp = Get-PackageParameters

$paths = New-Object System.Collections.ArrayList

if ($pp.count -gt 0) {
  $pp.GetEnumerator() | foreach-object {
    switch ($ {
        'AddToDesktop' {
          Write-Verbose("Desktop shortcuts will be created for $env:ChocolateyPackageName")
          if ($pp.User) {
            $desktopPath = [Environment]::GetFolderPath('Desktop')
          } else {
            $desktopPath = [Environment]::GetFolderPath('CommonDesktopDirectory')

          $paths.add($desktopPath) | Out-Null
        'AddToStartMenu' {
          Write-Verbose("$env:ChocolateyPackageName will be added to the Start Menu")
          if ($pp.User) {
            $startMenuPath = [Environment]::GetFolderPath('StartMenu')
          } else {
            $startMenuPath = [Environment]::GetFolderPath('CommonStartMenu')

          $startMenuFolder = Join-Path $startMenuPath 'NetHack'
          if (-Not (Test-Path -PathType Container $startMenuFolder)) {
            New-Item -Path $startMenuFolder -ItemType directory -Force | Out-Null
          $paths.Add($startMenuFolder) | Out-Null
        'User' {
          # ignore - no need to handle independently as it is a qualifier for other options
        Default {
          Write-Verbose("Unknown parameter $ will be ignored")

  if ($paths.Count -gt 0) {
    $executable        = Join-Path $toolsDir 'NetHack.exe'
    $classicExecutable = Join-Path $toolsDir 'NetHackW.exe'
    $icon              = Join-Path $toolsDir 'nethack.ico'
    $paths.GetEnumerator() | foreach-object {
      $shortcutPath = Join-Path $_ 'Nethack.lnk'
      Install-ChocolateyShortcut -ShortcutFilePath $shortcutPath -TargetPath $executable -IconLocation $icon

      $shortcutPath = Join-Path $_ 'Nethack (Classic).lnk'
      Install-ChocolateyShortcut -ShortcutFilePath $shortcutPath -TargetPath $classicExecutable -IconLocation $icon
md5: D4F4479CCB5FA328DD6ED8C58FD411FB | sha1: E73D0C577DA97C20D1E3195C7FFA2EBE225CE80F | sha256: 88B72D74B4D67AE4E960690AE5E9646989D5D98E609BA97F4A4281DD7D3123D9 | sha512: 81035F10674DFAB49E55D3DB368309C3C5A715CF70F106689FBF36CEE66215F43B9D7D1A8D7A2A57D1F442249957C34AE42F595BEBE3BAB2A91DEDF2B4F0C500

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Add to Builder Version Downloads Last Updated Status
Nethack - Single Player Dungeon Exploration 3.6.6 21 Sunday, May 23, 2021 Approved
Nethack - Single Player Dungeon Exploration 3.6.5 18 Sunday, May 23, 2021 Approved
Nethack - Single Player Dungeon Exploration 14 Sunday, May 23, 2021 Approved
Nethack - Single Player Dungeon Exploration 3.6.4 24 Sunday, May 23, 2021 Approved
Nethack - Single Player Dungeon Exploration 3.6.3 24 Sunday, May 23, 2021 Approved
NetHack 3.6.2 775 Friday, June 7, 2019 Approved
NetHack 3.6.1 451 Monday, December 24, 2018 Approved
NetHack 747 Friday, February 3, 2017 Approved
NetHack 3.6.0 483 Monday, April 4, 2016 Approved

This package has no dependencies.

Discussion for the Nethack - Single Player Dungeon Exploration Package

Ground Rules:

  • This discussion is only about Nethack - Single Player Dungeon Exploration and the Nethack - Single Player Dungeon Exploration package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Nethack - Single Player Dungeon Exploration, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus