Page 1 of 1

[SOLVED] md5 tool

PostPosted: Jun 9th, '11, 02:24
by billo
In my old Mandriva distribution, there was a little app called md5sum that would calculate md5 hashes. I can't seem to find it in the mageia distro. Is there an equivalent here?

Thanks!

billo

Re: md5 tool

PostPosted: Jun 9th, '11, 03:06
by Ken-Bergen
md5sum is part of the coreutils package which is installed by default.
It is a command line utility so you won't find it in the menu but it is there.

Ken

Re: md5 tool

PostPosted: Jun 9th, '11, 03:34
by billo
Oh, for crying out loud. I had been typing md5sim. Forehead slap. Thanks for making me look again, and sorry for the noise.

Re: md5 tool

PostPosted: Jun 9th, '11, 05:27
by ahmad
billo wrote:Oh, for crying out loud. I had been typing md5sim. Forehead slap. Thanks for making me look again, and sorry for the noise.

(You probably already know but just in case); You can use the bash (the shell) built-in tab completion so:
Code: Select all
$ md5<TAB>
md5pass  md5sum   
[ahmad@mybox ~]$ md5s<TAB>

on the second tab, you'll get md5sum.

You can also install the bash-completion package, to get many more complex completions, e.g.:
Code: Select all
# urpmi --auto
--auto          --auto-orphans  --auto-select   --auto-update   
[root@mybox ahmad]# urpmi --auto-u<TAB>

will auto-complete to 'urpmi --auto-update'. Check /etc/bash_completion.d/ for a list of the commands that will have bash completion support.

Re: md5 tool

PostPosted: Jun 9th, '11, 10:41
by Sfiet_Konstantin
Beware with urpmi :D
Code: Select all
urpmi a<TAB>

can literraly stuck you computer because it will search every packages starts with A.

Re: md5 tool

PostPosted: Jun 9th, '11, 17:10
by Akien
Sfiet_Konstantin wrote:Beware with urpmi :D
Code: Select all
urpmi a<TAB>

can literraly stuck you computer because it will search every packages starts with A.

Same, or worse, with
Code: Select all
urpmi lib<TAB>

:)

Re: md5 tool

PostPosted: Jun 9th, '11, 17:18
by ahmad
I too find package names completion slow, that's why I patch /etc/bash_completion.d/urpmi locally to disable the package names auto-completion. (I filed a bug report about that issue some time ago https://bugs.mageia.org/show_bug.cgi?id=373).

Re: [solved] md5 tool

PostPosted: Jun 10th, '11, 08:07
by maat
Marked a solved :)

Re: md5 tool

PostPosted: Jun 12th, '11, 14:39
by billo
ahmad wrote:(You probably already know but just in case); You can use the bash (the shell) built-in tab completion so:
Code: Select all
$ md5<TAB>
md5pass  md5sum   
[ahmad@mybox ~]$ md5s<TAB>

on the second tab, you'll get md5sum.

You can also install the bash-completion package, to get many more complex completions, e.g.:
Code: Select all
# urpmi --auto
--auto          --auto-orphans  --auto-select   --auto-update   
[root@mybox ahmad]# urpmi --auto-u<TAB>

will auto-complete to 'urpmi --auto-update'. Check /etc/bash_completion.d/ for a list of the commands that will have bash completion support.



No, I didn't know that. Thanks for the info!!

billo