/no

GNU CoreUtils yes, but I'm having a bad day.

Primary LanguageMakefileGNU General Public License v3.0GPL-3.0

No

An alternative to the GNU program, yes. For when you're having a bad day.

Installing

None of these programs have any dependencies outside of their respective compilers or interpreters.

Instructions per-language

C

gcc -o no src/no.c
sudo mv no /usr/local/bin/no

C++

g++ -o no src/no.cpp
sudo mv no /usr/local/bin/no

C#

# Install dotnet-sdk-8.0
# apt install dotnet-sdk-8.0
# pacman -S dotnet-sdk
# dnf install dotnet
cd src
dotnet build
mv bin/Debug/net8.0/src /usr/local/bin/no

Dart

# There's multiple ways to get dart - see https://dart.dev/get-dart
# I used docker here.
docker run -it --rm -v ./src/:/root/ dart dart compile exe no.dart
mv src/no.exe /usr/local/bin/no

Go

# Install Go
# https://www.digitalocean.com/community/tutorials/how-to-install-go-on-ubuntu-20-04
# pacman -S go
# dnf install go
go build src/no.go
sudo mv no /usr/local/bin/no

Java

# Install Java (written on Java 17, but it should run on any java in theory)
java src/no.java

JavaScript

node src/no.js

Kotlin

# Download Kotlin's native compiler
wget -O kotlin-1.9.23.tar.gz https://github.com/JetBrains/kotlin/releases/download/v1.9.23/kotlin-native-linux-x86_64-1.9.23.tar.gz
tar xzvf kotlin-1.9.23.tar.gz
kotlin-native-linux-x86_64-1.9.23/bin/kotlinc-native src/no.kt
mv no.kexe /usr/local/bin/no

lisp

I have no idea. This no is untested.

lua

# After installing lua
lua src/no.lua

PHP

# After installing PHP
cd src
php -S localhost:8080
# Open your browser to localhost:8080

PowerShell

# Install powershell: https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-linux?view=powershell-7.4
pwsh src/no.ps1

Python

python3 src/no.py

Ruby

ruby src/no.rb

Rust

rustc src/no.rs
sudo mv no /usr/local/bin/no

Shell/Bash

sudo mv src/no.sh /usr/bin/local/no

TypeScript

npm i -g typescript
tsc src/no.ts
# node no.js

Why?

Because saying no is an important part of life, and it should be included in your day-to-day operating system too. I also just found it funny.