You are not logged in.

#1 2025-09-07 00:01:21

ls
Member
Registered: 2024-04-22
Posts: 5

Please make openbsd-netcat the default netcat as gnu-netcat has no v6

Is it possible for Arch Linux repository maintainers to change the default provider of a package?

[root@f ~]# LC_ALL=C.UTF-8 pacman -S netcat
:: There are 2 providers available for netcat:
:: Repository extra
   1) gnu-netcat  2) openbsd-netcat

Enter a number (default=1): 2

gnu-netcat really shouldn't be the default as it is more than 21 years old and has no IPv6 support. openbsd-netcat should be the default. Is this possible to change or is it alphabetically sorted?

Offline

#2 2025-09-07 00:06:30

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,182
Website

Re: Please make openbsd-netcat the default netcat as gnu-netcat has no v6

Mod note: moving to Pacman Issues.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2025-09-08 00:07:16

killertofus
Member
Registered: 2025-02-10
Posts: 112

Re: Please make openbsd-netcat the default netcat as gnu-netcat has no v6

according to the issue page it's getting removed so it will be a non issue soon™

Offline

#4 2025-09-08 16:56:20

gromit
Administrator
From: Germany
Registered: 2024-02-10
Posts: 1,443
Website

Re: Please make openbsd-netcat the default netcat as gnu-netcat has no v6

I'll try to look into it, from a first glance it should either be dropped or made ranking behind the openbsd variant.

Offline

#5 2025-09-08 21:28:36

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 71,519

Re: Please make openbsd-netcat the default netcat as gnu-netcat has no v6

Fwwi, nc (openbsd), netcat (gnu) and ncat (nmap) are not fully compatible implementations of the same concept.
A generic dependency will only work for basic invocation by the client process and if any user has some local scripts depending on gnu-netcat, simply replacing that w/ nc can cause weird failure b/c of colliding parameters (notably -t) or missing features.

You're almost looking at a java-like situation…

Compatible w/ all three:
https://github.com/marlam/msmtp/blob/ma … tpq/msmtpq has "nc -vz"
https://github.com/ugoviti/synbak/blob/ … s.sh#L1436 checks for netcat or nc and only uses "-w"

Hard-depends on openbsd-netcat:
https://archlinux.org/packages/extra/any/cloud-init/
https://archlinux.org/packages/extra/x86_64/libvirt/

Open question: https://archlinux.org/packages/extra/x86_64/zed/

The rest are make/check dependencies.

Offline

#6 2025-11-26 01:28:37

regid
Member
Registered: 2016-06-06
Posts: 207

Re: Please make openbsd-netcat the default netcat as gnu-netcat has no v6

The last version arch had is 0.7.1-12, at least in arch most widely used repositories.
There are No result when searching for it in the official repositories. I assume it was removed.

ls wrote:

It is more than 21 years old and has no IPv6 support.

At the end of 2013 that was not entirely correct. That page links to beta for 0.8 from 2014. As of the time of this writing, they have added IPv6 support 12 years ago. Back then, their IPv6 implementation had issues. At the time of this writing, the gnu-netcat-svn AUR package has a slightly more recent version then the version with the IPv6 issues. I don't know if, and how, the IPv6 issues were fixed. The -svn package at the AUR looks to me minimally maintained. Just to allow it to be built at present times.
Not that it matters much. Gnu-netcat seems unmaintained for a long time. Posting here just to get the facts right, if someone will look for them in the future.

Last edited by regid (2025-11-26 05:36:55)


powerofforreboot.efi (AUR): Utilities to be used from within a UEFI boot manager or shell.

Offline

#7 2025-11-26 10:29:47

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,565

Re: Please make openbsd-netcat the default netcat as gnu-netcat has no v6

$ pacman -F netcat
extra/openbsd-netcat 1.234_1-1
    usr/bin/netcat
$ 

It appears gnu-netcat was dropped to aur .

@ ls : Please prepend [Solved] to the thread title (edit first post) to indicate to others this is no longer an issue.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB