Re: The "rename" package does not install the rename(2) script?
Date: Fri, 27 Dec 2024 01:59:13 UTC
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 <https://cgit.freebsd.org/ports/tree/sysutils/rename/Makefile#n14>. I was able to find the source <https://rename.sourceforge.net/> 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 PM 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 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=f5.tracy.holgerdanske.com > + perl -e 'exit($ENV{OSTYPE} =~ /freebsd/ ? 0 : 1)' > + cmd=pkg > + 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% > ===== > Message from rename-1.99.2_1: > > -- > ===> 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 > > > -- Chaleureusement, Pier-Luc