From nobody Fri Dec 27 01:59:13 2024 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YK7wm1Ttdz5hjT1 for ; Fri, 27 Dec 2024 01:59:52 +0000 (UTC) (envelope-from pierluc.caronstpierre@gmail.com) Received: from mail-vs1-xe33.google.com (mail-vs1-xe33.google.com [IPv6:2607:f8b0:4864:20::e33]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YK7wl3WWMz4d9x for ; Fri, 27 Dec 2024 01:59:51 +0000 (UTC) (envelope-from pierluc.caronstpierre@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-vs1-xe33.google.com with SMTP id ada2fe7eead31-4afdfefc6c1so2124293137.0 for ; Thu, 26 Dec 2024 17:59:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735264790; x=1735869590; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=TBlfuMZreS3400N7OI2/vqii0nSmtezfS3JAd4EdEqw=; b=hJRlVY25AdHVkHqQpnIobkaunAe6tqugPd+ee4JEEZH4Lfe6s/xvjPyyBl7WfBnvKF Xzpvug+RnJeK9DI/hiazS477E5rHeS8VtK5wSxRwU3OY5/+WDR3KqTnO5bBdYKifMlLH lrCZwAg22hdgvbD4ZrUpmWoByLohI+cqDpj1lSg3ZkITPXbbjbBQwd0Sox/mOtoJ9rgU dGlerBPxfShm4uKu7u7FlB9f+GOaXdyuTCt32KYQ3/UkxwRjaO7mKF9zxW376dRz0cC/ pBlD8Tt7bIJ+4jPG2eEukLqX1zcQ28wf9MoDdOVSQsN5gkyH+c9dsa3uwTAYeNmqVd5v +8OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735264790; x=1735869590; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=TBlfuMZreS3400N7OI2/vqii0nSmtezfS3JAd4EdEqw=; b=hmpIC6/X648aGNK+zzDKAaYvqTat2AWCALiF4/6rBVVnngYyYDhZ4ulGKetMwig0EY 10M0ayIGLGDt0olJUPd6JQUV4xeVO106nB3b58T67IzvgvkbC8AKHV3HnZeC4zAbgJKy s/vaUHVoPJyGTSkETlnlo9S3ZyjMUS0pN4ILz/33UXim/Fxu5UUVFSrE34HVdACz8ai2 miQlc4tuz1UX8aTub8HzGY8SO6YxApZZlZk7KxuvjXMzNlwBqZX+obLlX1ZSMJjOMU0i Sjc9wBZxZWaKyJqa/LrbYiMF4Y1zYDKRq8s3Vz2FYO2/7NH4ASpDcSr3T2SqbWkDJEc9 K3wg== X-Gm-Message-State: AOJu0YzgglJtWuJ+DgOEa270kDxp9h+HprkYOjypOWPZ4he+2j/HpvA/ flhxKQw/mZbY9lQR50SFqIojwGMTkj/x285Ok5dQmtY3VM6504UEr4y2yVqoo31L+9f6HkdGScj fd1mMiTTPLbVobtnwsohMIW9+JiV6W/gx X-Gm-Gg: ASbGncs/G0Y6FO89jw0ERPyTNJTfdTmOW07wMmCenAIN8s4nWnN2pnCgBrWvPuzLUBX IW9LrGJ88px/C80exR+TPuKUt3URZ6pUL5jqPH9I= X-Google-Smtp-Source: AGHT+IEFhD671xLJc8N147D3vsyuvZT19rHEg/LQVzwZLxSaZ7rb7hT41ZeQMIg1l4QihINk57NBCFWeis7D1lyAHxE= X-Received: by 2002:a05:6102:32cc:b0:4af:4974:a489 with SMTP id ada2fe7eead31-4b2cc46245cmr20416413137.20.1735264790360; Thu, 26 Dec 2024 17:59:50 -0800 (PST) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 References: In-Reply-To: From: Pier-Luc Caron St-Pierre Date: Thu, 26 Dec 2024 20:59:13 -0500 Message-ID: Subject: Re: The "rename" package does not install the rename(2) script? To: David Christensen Cc: freebsd-questions@freebsd.org Content-Type: multipart/alternative; boundary="0000000000006bba61062a36d195" X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; TAGGED_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4YK7wl3WWMz4d9x X-Spamd-Bar: ---- --0000000000006bba61062a36d195 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi David, It looks like the package is not your expected perl script that you are looking for. The package is installing a binary named renamex . I was able to find the source here. I compiled on my system and it resulted in a renamex binary. I was not able to find why it is this way. I hope it helps! On Thu, Dec 26, 2024 at 8:28=E2=80=AFPM David Christensen wrote: > freebsd-questions: > > I have a FreeBSD machine on my SOHO network: > > 2024-12-26 17:23:08 toor@f5 ~ > # freebsd-version -kru ; uname -a > 13.4-RELEASE-p1 > 13.4-RELEASE-p1 > 13.4-RELEASE-p2 > FreeBSD f5.tracy.holgerdanske.com 13.4-RELEASE-p1 FreeBSD > 13.4-RELEASE-p1 GENERIC amd64 > > > I wanted to install the "rename" Perl script: > > 2024-12-26 17:26:09 toor@f5 ~ > # pkg search rename > brename-2.14.0_7 Tool for batch renaming files/directories > via regular expressions > gprename-2.7_1,1 Perl script for renaming multiple files > krename-5.0.2_4 Powerful batch file renamer for KDE > linrename-2.25.2_1 Rename multiple files using substitution > p5-Devel-Caller-IgnoreNamespaces-1.1 Make available a magic caller which > can ignore namespaces > p5-File-Rename-2.01 Rename multiple files > rename-1.99.2_1 Rename multiple files using regular > expressions > renameutils-0.12.0_3 Rename files faster and more easily > > > I installed the "rename" package (via a utility shell script): > > 2024-12-26 17:16:56 toor@f5 /var/local/image/f5 > # install-packages -y > + hostname -f > + host=3Df5.tracy.holgerdanske.com > + perl -e 'exit($ENV{OSTYPE} =3D~ /freebsd/ ? 0 : 1)' > + cmd=3Dpkg > + cat /root/f5.tracy.holgerdanske.com/packages > + xargs pkg install -y > Updating FreeBSD repository catalogue... > FreeBSD repository is up to date. > All repositories are up to date. > The following 1 package(s) will be affected (of 0 checked): > > New packages to be INSTALLED: > rename: 1.99.2_1 > > Number of packages to be installed: 1 > > 23 KiB to be downloaded. > [1/1] Fetching rename-1.99.2_1.pkg: 100% 23 KiB 23.6kB/s 00:01 > Checking integrity... done (0 conflicting) > [1/1] Installing rename-1.99.2_1... > [1/1] Extracting rename-1.99.2_1: 100% > =3D=3D=3D=3D=3D > Message from rename-1.99.2_1: > > -- > =3D=3D=3D> NOTICE: > > The rename port currently does not have a maintainer. As a result, it is > more likely to have unresolved issues, not be up-to-date, or even be > removed in > the future. To volunteer to maintain this port, please create an issue at= : > > https://bugs.freebsd.org/bugzilla > > More information about port maintainership is available at: > > https://docs.freebsd.org/en/articles/contributing/#ports-contributing > > 2024-12-26 17:17:56 toor@f5 /var/local/image/f5 > # > > > My shell is unable to find the rename(2) binary: > > 2024-12-26 17:23:05 toor@f5 ~ > # rename > -bash: rename: command not found > > 2024-12-26 17:23:06 toor@f5 ~ > # which rename > > 2024-12-26 17:23:20 toor@f5 ~ > # echo $PATH > /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin > > 2024-12-26 17:24:24 toor@f5 ~ > # find -x / -name rename > /usr/tests/sys/pjdfstest/rename > > > Comments or suggestions? > > David > > > --=20 Chaleureusement, Pier-Luc --0000000000006bba61062a36d195 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi David,

It looks like the = package is not your expected perl script that you are looking for. The pack= age is installing a binary named renamex.

I = was able to find the source= here. I compiled on my system and it resulted in a renamex binary.

I was not able to find why it is this way.
=
I hope it helps!

On Thu, Dec = 26, 2024 at 8:28=E2=80=AFPM David Christensen <dpchrist@holgerdanske.com> wrote:
freebsd-questions:

I have a FreeBSD machine on my SOHO network:

2024-12-26 17:23:08 toor@f5 ~
# freebsd-version -kru ; uname -a
13.4-RELEASE-p1
13.4-RELEASE-p1
13.4-RELEASE-p2
FreeBSD f5.tracy.holgerdanske.com 13.4-RELEASE-p1 FreeBSD
13.4-RELEASE-p1 GENERIC amd64


I wanted to install the "rename" Perl script:

2024-12-26 17:26:09 toor@f5 ~
# pkg search rename
brename-2.14.0_7=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Tool= for batch renaming files/directories
via regular expressions
gprename-2.7_1,1=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Perl= script for renaming multiple files
krename-5.0.2_4=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Powe= rful batch file renamer for KDE
linrename-2.25.2_1=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Rename mu= ltiple files using substitution
p5-Devel-Caller-IgnoreNamespaces-1.1 Make available a magic caller which can ignore namespaces
p5-File-Rename-2.01=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Rename multipl= e files
rename-1.99.2_1=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Rena= me multiple files using regular
expressions
renameutils-0.12.0_3=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Rename files f= aster and more easily


I installed the "rename" package (via a utility shell script):
2024-12-26 17:16:56 toor@f5 /var/local/image/f5
# install-packages -y
+ hostname -f
+ host=3Df5.tracy.holgerdanske.com
+ perl -e 'exit($ENV{OSTYPE} =3D~ /freebsd/ ? 0 : 1)'
+ cmd=3Dpkg
+ cat /root/f5.tracy.holgerdanske.com/packages
+ xargs pkg install -y
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
=C2=A0 =C2=A0 =C2=A0 =C2=A0 rename: 1.99.2_1

Number of packages to be installed: 1

23 KiB to be downloaded.
[1/1] Fetching rename-1.99.2_1.pkg: 100%=C2=A0 =C2=A023 KiB=C2=A0 23.6kB/s= =C2=A0 =C2=A0 00:01
Checking integrity... done (0 conflicting)
[1/1] Installing rename-1.99.2_1...
[1/1] Extracting rename-1.99.2_1: 100%
=3D=3D=3D=3D=3D
Message from rename-1.99.2_1:

--
=3D=3D=3D>=C2=A0 =C2=A0NOTICE:

The rename port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be
removed in
the future. To volunteer to maintain this port, please create an issue at:<= br>
https://bugs.freebsd.org/bugzilla

More information about port maintainership is available at:

https://docs.freebsd.org/en/art= icles/contributing/#ports-contributing

2024-12-26 17:17:56 toor@f5 /var/local/image/f5
#


My shell is unable to find the rename(2) binary:

2024-12-26 17:23:05 toor@f5 ~
# rename
-bash: rename: command not found

2024-12-26 17:23:06 toor@f5 ~
# which rename

2024-12-26 17:23:20 toor@f5 ~
# echo $PATH
/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin

2024-12-26 17:24:24 toor@f5 ~
# find -x / -name rename
/usr/tests/sys/pjdfstest/rename


Comments or suggestions?

David




--
Chaleureusement,
Pier-Luc
--0000000000006bba61062a36d195--