Where can I find recode ?

Hi,

I’ve recently migrated my workstation from CentOS 7 to OpenSUSE Leap 15.0 KDE. I’m a long-time Linux user who started out on Slackware 7.1.

One of the command line tools I use quite often is “recode”, a charset conversion tool. More often than not, movie subtitles are encoded in UTF8, and I need them in latin1, so a simple ‘recode utf8…latin1’ will do the trick.

Unfortunatly ‘recode’ is nowhere to be found in the repositories. I have the official repos configured as well as Packman.

Before spamming my system by building it manually from source, I thought I’d rather ask if there’s some obscure repository somewhere.

Cheers from the sunny South of France.

Hi
Looks like it was dropped from Leap 15.0 since it’s in Base:System;

This one is linked to the package, so either grab that or rebuild the src rpm?

https://build.opensuse.org/package/binaries/home:manfred-h/recode/openSUSE_Leap_15.0

On 12/23/18 9:16 AM, microlinux wrote:
>
> Hi,
>
> I’ve recently migrated my workstation from CentOS 7 to OpenSUSE Leap
> 15.0 KDE. I’m a long-time Linux user who started out on Slackware 7.1.
>
> One of the command line tools I use quite often is “recode”, a charset
> conversion tool. More often than not, movie subtitles are encoded in
> UTF8, and I need them in latin1, so a simple ‘recode utf8…latin1’ will
> do the trick.
>
> Unfortunatly ‘recode’ is nowhere to be found in the repositories. I have
> the official repos configured as well as Packman.
>

You can always use ‘osc’ to search all available repos.

code:

osc se recode

/code:


Ken
unix since 1986
S.u.S.E.-openSUSE since 1998

I’m quite new to OpenSUSE. I’ve built my own packages for CentOS and Slackware before, even had my own repos. If I understand this correctly, OpenSUSE has the OpenSUSE Build Service. I’m a bit confused here, and I’m not even sure where to start, because there’s build.opensuse.org and then openbuildservice.org.

Any pointers on where to start, which documentation to read ? I’m not a lamer for RTFM, and I prefer detailed and thorough documentation to quick & dirty.

Cheers.

Hi
Well to rebuild a src rpm as your user run;


rpmbuild --rebuild <some_src_rpm>

This assumes rpmbuild and the src rpm dependencies get installed (it will error out telling you what is needed). It will create a rpmbuild directory in your users $HOME directory from this you can switch to root user and install.

The openSUSE Build Service is here (Create an account and should be good to go);

Tutorials;

More info here;
https://en.opensuse.org/Portal:Build_Service

The command line tool to build locally is called osc;
https://en.opensuse.org/openSUSE:OSC

Hopefully that should give you a primer :wink: We have a separate sub forum for the openSUSE Build Service, so head over there if you have specific issues :slight_smile:

Some time ago I failed to find recode. Now I ran:

zypper ar --refresh  --priority 100 http://download.opensuse.org/repositories/Base:/System/openSUSE_Factory/  Base
zypper in recode

This looks exactly like what I need. But is the repository compatible with Leap 15.0 ?

Hi
If you don’t want to build, use the one from here which is linked to the Base System package and the build target is enabled for Leap 15.0;
https://download.opensuse.org/repositories/home:/manfred-h/openSUSE_Leap_15.0/x86_64/recode-3.6-lp150.640.1.x86_64.rpm