Ubuntu: How can I install pyrenamer for bionic?


pyrenamer is an excellent bulk file renaming tool. But I could not find it in the repository for 18.04 Bionic Beaver or a PPA.
I use it all the time to rename photo images before importing into the Shotwell image library management system.

In particular, I use a pattern to get names in the form yyyymmdd including a day of the week (it is so much easier to remember the day of the week one visited the zoo) and the model name of the camera used. The ~ symbol helps if one wants to search and replace to revert to the original file image name. See:


If a PPA becomes available for 18.04 please inform here.


This problem can also be solved natively in 18.04 by installing another similar GUI batch renamer app from the default Ubuntu repositories. GPRename easily can replace, remove, insert, delete and number consecutively files and directories. GPRename can be installed in 18.04 and later with the following command:

sudo apt install gprename    

To get the functionality of reading EXIF metadata tags in 18.04 install renrot. renrot can rename and rotate files according to EXIF tags. renrot can be installed in 18.04 and later with the following command:

sudo apt install renrot    

enter image description here


I found a deb file here which seems to have installed ok in 18.04. So my normal service is resumed.
I used the deb file link at the bottom of this page which installed fine with double click. https://launchpad.net/ubuntu/+source/pyrenamer/0.6.0-1.2/+build/8439869

However, as helpfully suggested below a better and more comprehensive source of the deb is available on this page: https://packages.ubuntu.com/artful/all/pyrenamer/download


I like using pyrenamer because it is so easy and does not involve any tricky coding. As explained above, it is good for easily renaming images with the day of the week. But it does not handle EXIF data for mts movies shot with my "dmc-gx7" camera so I was persuaded by seeing:


to getting my hands slightly dirty with EXIFTOOL and the ideas from the linked page to bulk rename with a script to get the day of the week and MY camera model into mts video file names. A variation can handle jpgs. See:

for f in *.mts do mv -n "$f" "$(exiftool -d "%Y%m%d_%a_%H%M%S" -DateTimeOriginal "$f" | awk '{print $4"_dmc-gx7~"}')"$f"" done

ls | while read upName; do loName=echo "${upName}" | tr '[:upper:]' '[:lower:]'; mv "$upName" "$loName"; done

The latter part switches to lower case and I forget where I found that trick. I'm a newbie so this was several hours work to achieve.

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »