Difference between revisions of "Forum:Patching help"

From NetHackWiki
Jump to navigation Jump to search
(you won't have to uninstall the old version if the new version is installed to your home dir)
Line 10: Line 10:
 
Will I have to uninstall the NetHack already running?
 
Will I have to uninstall the NetHack already running?
 
[[User:Jubilex|Jubilex]] ([[User talk:Jubilex|talk]]) 18:36, 27 August 2015 (UTC)
 
[[User:Jubilex|Jubilex]] ([[User talk:Jubilex|talk]]) 18:36, 27 August 2015 (UTC)
 +
:It depends on how you install the new version. If you install the new version in a subdirectory of your home directory, you won't have to uninstall the old one (although things like saves, bones, etc., won't be shared between the two versions); I recommend doing this anyway as it means you won't need root access to install and that it'll be easier to avoid messing up your system by mistake. This is how I make patches to NetHack, when I'm working on the DevTeam-released versions and not a variant. [[User:Ais523|Ais523]] ([[User talk:Ais523|talk]])

Revision as of 18:41, 27 August 2015


I run NetHack from Linux via sudo apt-get install. Is there a way for me to apply patches?

Not directly. `apt-get install` is giving you a binary (i.e. pre-compiled) version that you can't patch against, because you aren't running the compiler yourself. However, what you can do is to download the source separately, and patch/compile/install that. It's possible to do this via apt, but I wouldn't recommend that because it's quite complex; downloading the source from nethack.org and following the instructions there may be easier. Ais523 (talk) 18:08, 27 August 2015 (UTC)

Will I have to uninstall the NetHack already running? Jubilex (talk) 18:36, 27 August 2015 (UTC)

It depends on how you install the new version. If you install the new version in a subdirectory of your home directory, you won't have to uninstall the old one (although things like saves, bones, etc., won't be shared between the two versions); I recommend doing this anyway as it means you won't need root access to install and that it'll be easier to avoid messing up your system by mistake. This is how I make patches to NetHack, when I'm working on the DevTeam-released versions and not a variant. Ais523 (talk)