/usr/bin/rename.ul not in rename alternatives list

Bug #521677 reported by Ingo Preiml
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
util-linux (Ubuntu)
Triaged
Wishlist
Unassigned

Bug Description

Binary package hint: util-linux

Hello,

I recently migrated my system from another Linux distribution (Gentoo) and noticed, that the rename-tool behaves differently. I tried to change the rename tool using "sudo update-alternatives --config rename" but was unsuccessful with the message that there were no alternatives to select.

After a quick research on the net I found the following article: https://lists.ubuntu.com/archives/ubuntu-users/2009-May/184585.html. It states that not the rename tool of util-linux is used but the perl-script prename and the rename tool of util-linux can be found at "/usr/bin/rename.ul". According to the article the following command can be used to add "rename.ul" to the list of alternatives:

update-alternatives --install /usr/bin/rename rename /usr/bin/rename.ul 50 --slave /usr/share/man/man1/rename.1.gz rename.1.gz /usr/share/man/man1/rename.ul.1.gz

After this I was able to use the util-linux based rename.

Is it possible to enable this selection by default, e.g. using a post-install trigger for util-linux or prename? Or are there other considerations for not including the standard rename?

Yours sincerely,
Ingo

------

Ubuntu release:
Description: Ubuntu 9.10
Release: 9.10

Packages:
util-linux:
  Installed: 2.16-1ubuntu5
  Candidate: 2.16-1ubuntu5
  Version table:
 *** 2.16-1ubuntu5 0
        500 http://at.archive.ubuntu.com karmic/main Packages
        100 /var/lib/dpkg/status

Expected to happen:
Find /usr/bin/rename.ul in the rename alternatives list using sudo update-alternatives --config rename

Revision history for this message
Ingo Preiml (ipreiml-deactivatedaccount) wrote :

Added the command

update-alternatives --install /usr/bin/rename rename /usr/bin/rename.ul 50 --slave /usr/share/man/man1/rename.1.gz rename.1.gz /usr/share/man/man1/rename.ul.1.gz

to "util-linux.postinst".

Revision history for this message
Ingo Preiml (ipreiml-deactivatedaccount) wrote :

Added the code to the current ubuntu patchset for util-linux.

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Will need to agree this with the Debian maintainer first.

Changed in util-linux (Ubuntu):
status: New → Triaged
importance: Undecided → Wishlist
Revision history for this message
Ingo Preiml (ipreiml-deactivatedaccount) wrote :

Alright :)

tags: added: patch
tags: added: patch-upstreaminput
removed: patch
Revision history for this message
Andrey Bondarenko (abone) wrote :

rename.ul from util-linux package was removed from alternatives intentionnaly. It was a fix for Debian bug #439935, because other rename alternatives (e.g. prename) have incompatible usage syntax.

See also https://unix.stackexchange.com/a/444524/290955

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.