How to Install and Uninstall darkhttpd Package on openSuSE Tumbleweed

Last updated: November 23,2024

1. Install "darkhttpd" package

Please follow the guidelines below to install darkhttpd on openSuSE Tumbleweed

$ sudo zypper refresh $ sudo zypper install darkhttpd

2. Uninstall "darkhttpd" package

This is a short guide on how to uninstall darkhttpd on openSuSE Tumbleweed:

$ sudo zypper remove darkhttpd

3. Information about the darkhttpd package on openSuSE Tumbleweed

Information for package darkhttpd:
----------------------------------
Repository : openSUSE-Tumbleweed-Oss
Name : darkhttpd
Version : 1.16-1.1
Arch : x86_64
Vendor : openSUSE
Installed Size : 59.8 KiB
Installed : No
Status : not installed
Source package : darkhttpd-1.16-1.1.src
Upstream URL : https://unix4lyfe.org/darkhttpd
Summary : When you need a web server in a hurry
Description :
Features:
Simple to set up:
Single binary, no other files, no installation needed.
Standalone, doesn't need inetd or ucspi-tcp.
No messing around with config files - all you have to specify is the www root.
Written in C - efficient and portable.
Small memory footprint.
Event loop, single threaded - no fork() or pthreads.
Generates directory listings.
Supports HTTP GET and HEAD requests.
Supports Range / partial content. (try streaming music files or resuming a download)
Supports If-Modified-Since.
Supports Keep-Alive connections.
Supports IPv6.
Can serve 301 redirects based on Host header.
Uses sendfile() on FreeBSD, Solaris and Linux.
Can use acceptfilter on FreeBSD.
At some point worked on FreeBSD, Linux, OpenBSD, Solaris.
ISC license.
suckless.org says darkhttpd sucks less.
Small Docker image (<100KB)
Security:
Can log accesses, including Referer and User-Agent.
Can chroot.
Can drop privileges.
Impervious to /../ sniffing.
Times out idle connections.
Drops overly long requests.
Limitations:
Only serves static content - no CGI.

5. The same packages on other Linux Distributions