Lrzsz installed, after last update, rz and sz command not found?

Now I can only use WinSCP to transfer small files.

I dont have it, but according to the repos it does provides bins

$ pacman -Fl lrzsz
lrzsz usr/
lrzsz usr/bin/
lrzsz usr/bin/lrzsz/
lrzsz usr/bin/lrzsz/lrb
lrzsz usr/bin/lrzsz/lrx
lrzsz usr/bin/lrzsz/lrz
lrzsz usr/bin/lrzsz/lsb
lrzsz usr/bin/lrzsz/lsx
lrzsz usr/bin/lrzsz/lsz
lrzsz usr/share/
lrzsz usr/share/man/
lrzsz usr/share/man/man1/
lrzsz usr/share/man/man1/lrzsz-rz.1.gz
lrzsz usr/share/man/man1/lrzsz-sz.1.gz

You can check your own package;

pacman -Ql lrzsz

If they exist but arent being ‘seen’ …

Did you maybe break $PATH or something?

[cy@E6420 ~]$ echo $PATH
/home/cy/.local/bin:/home/cy/software/bin:/home/cy/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl

I also remove lrzsz and reinstall it(in Package Manager), same result.
run ‘lrzsz-rz’ like ‘rz’.
I also check OpenWRT, rz and sz is soft link command under /usr/bin
But I can`t find them in Manjaro now.

root@OpenWrt:~# cd /usr
root@OpenWrt:/usr# ll
drwxr-xr-x    2 root     root        4.0K 2024-02-06 08:51:48 +0800 bin/
drwxr-xr-x   11 root     root        4.0K 2024-02-03 17:04:34 +0800 lib/
lrwxrwxrwx    1 root     root           3 2023-11-14 21:38:11 +0800 lib64 -> lib/
drwxr-xr-x    4 root     root        4.0K 2024-02-06 08:52:19 +0800 libexec/
drwxr-xr-x    2 root     root        4.0K 2024-01-31 14:27:18 +0800 sbin/
drwxr-xr-x   17 root     root        4.0K 2024-02-03 23:15:04 +0800 share/
root@OpenWrt:/usr# cd bin
root@OpenWrt:/usr/bin# ll rz*
lrwxrwxrwx    1 root     root           3 2024-01-28 09:09:51 +0800 rz -> lrz*
root@OpenWrt:/usr/bin# 

F searches the database.
Q searches your installed packages.

(which functionally means Q for installed things, F for everything)

To see whats provided by an installed package (on your system) it would be

pacman -Ql lrzsz

But you seemed to show it other ways in the original output from E6420.

Strange, there is no rz and sz.

[cy@E6420 ~]$ pacman -Ql lrzsz
lrzsz /usr/
lrzsz /usr/bin/
lrzsz /usr/bin/lrzsz-rb
lrzsz /usr/bin/lrzsz-rx
lrzsz /usr/bin/lrzsz-rz
lrzsz /usr/bin/lrzsz-sb
lrzsz /usr/bin/lrzsz-sx
lrzsz /usr/bin/lrzsz-sz
lrzsz /usr/share/
lrzsz /usr/share/man/
lrzsz /usr/share/man/man1/
lrzsz /usr/share/man/man1/lrzsz-rz.1.gz
lrzsz /usr/share/man/man1/lrzsz-sz.1.gz

CentOS 7: it does provides bins

[test@test90 ~]$ cd /usr/bin
[test@test90 bin]$ ll rz*
-rwxr-xr-x. 3 root root 76760 6月  10 2014 rz
[test@test90 bin]$ cat /etc/redhat-release 
CentOS Linux release 7.9.2009 (Core)
[test@test90 bin]$ 

pacman.log no errors:

[cy@E6420 ~]$ sudo tail /var/log/pacman.log
[2024-02-07T16:50:56+0800] [ALPM] running '30-systemd-update.hook'...
[2024-02-08T10:12:27+0800] [ALPM] transaction started
[2024-02-08T10:12:27+0800] [ALPM] removed lrzsz (0.12.20-10)
[2024-02-08T10:12:27+0800] [ALPM] transaction completed
[2024-02-08T10:12:27+0800] [ALPM] running '30-systemd-update.hook'...
[2024-02-08T10:12:55+0800] [PAMAC] synchronizing package lists
[2024-02-08T10:13:13+0800] [ALPM] transaction started
[2024-02-08T10:13:13+0800] [ALPM] installed lrzsz (0.12.20-10)
[2024-02-08T10:13:14+0800] [ALPM] transaction completed
[2024-02-08T10:13:14+0800] [ALPM] running '30-systemd-update.hook'...
[cy@E6420 ~]$ 

They are there … just not with the shorter symlinks.

You can always do that yourself, such as alias;

alias rz='lrzsz-rz'
alias sz='lrzsz-sz'

(put it in your rc file to have it automatically provided in terminal sessions)

3 Likes

:rofl: alias is a temporary solution.
-F searches remote database
‘-Q’ searches your installed packages

The strange thing is that the installed package does not include the rz command that can be used directly. It could be used directly in the past. I’ll download the installation package and find out why.

The maintainer of the package is an Arch Linux packager.

 $ pamac info lrzsz
Name                  : lrzsz
Version               : 0.12.20-12
Description           : xmodem, ymodem and zmodem file transfer protocols
URL                   : https://www.ohse.de/uwe/software/lrzsz.html
Licenses              : GPL2
Repository            : extra
Installed Size        : 156,8 kB
Groups                : --
Depends On            : --
Optional Dependencies : --
Provides              : --
Replaces              : --
Conflicts With        : --
Packager              : Sergej Pupykin <spupykin@archlinux.org>
Build Date            : fre 26 jan 2024 23:19:35 CET
Validated By          : MD5 Sum  SHA-256 Sum  Signature

So you would look towards Arch Linux / Packaging / Packages / lrzsz · GitLab to find the PKGBUILD history.

Not any more temporary in your .zshrc/.bashrc than as a symlink. :person_shrugging:
(and I might argue if its something you are adding yourself then HOME makes more sense)

I imagine the “lrzsz-” prefix was added to the executables to avoid confusion with other packages, such as Rizin, which has “rz-” as the prefix to many of its executables:

/usr/bin/rizin
/usr/bin/rz-asm
/usr/bin/rz-ax
/usr/bin/rz-bin
/usr/bin/rz-diff
/usr/bin/rz-find
/usr/bin/rz-gg
/usr/bin/rz-hash
/usr/bin/rz-run
/usr/bin/rz-sign
/usr/bin/rz-test

1 Like

There is a bug mentioned in the upstream, but it has been closed.

The binaries has been relocated to a subfolder /usr/bin/lrzsz possibly to avoid conflicts with other binaries.

From the Files tab in Add / Remove Software

/usr/bin/lrzsz/lrb
/usr/bin/lrzsz/lrx
/usr/bin/lrzsz/lrz
/usr/bin/lrzsz/lsb
/usr/bin/lrzsz/lsx
/usr/bin/lrzsz/lsz
/usr/share/man/man1/lrzsz-rz.1.gz
/usr/share/man/man1/lrzsz-sz.1.gz

So I suggest you add /usr/bin/lrzsz to your path e.g. in your .zshrc or your .bashrc or .profile

export PATH=/usr/bin/lrzsz:${PATH}
2 Likes

There is no subfolder /usr/bin/lrzsz
So I add alias first.

https://packages.manjaro.org/?query=lrzsz

Hmm - perhaps you are on stable branch - and you run into issue when the next snap to stable is done

 $ ls /usr/bin/lrzsz
lrb  lrx  lrz  lsb  lsx  lsz
 $ pamac info lrzsz
Name                  : lrzsz
Version               : 0.12.20-12
Description           : xmodem, ymodem and zmodem file transfer protocols
URL                   : https://www.ohse.de/uwe/software/lrzsz.html
Licenses              : GPL2
Repository            : extra
Installed Size        : 156,8 kB
Groups                : --
Depends On            : --
Optional Dependencies : --
Required By           : --
Optional For          : --
Provides              : --
Replaces              : --
Conflicts With        : --
Packager              : Sergej Pupykin <spupykin@archlinux.org>
Build Date            : fre 26 jan 2024 23:19:35 CET
Install Date          : tor 15 feb 2024 09:42:58 CET
Install Reason        : Explicitly installed
Validated By          : Signature
Backup files          : --
1 Like

Yes, my version is

Version               : 0.12.20-10

next version I will add

/usr/bin/lrzsz

to PATH and change alias:

alias rz='lrz'
alias sz='lsz'

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.