You are not logged in.

#1 2012-10-15 10:35:49

lxyu
Member
From: Spirit
Registered: 2012-01-11
Posts: 11
Website

Where do I find the package "shasum"?

Sorry for such a newbie question, but I don't find it in pacman nor AUR nor google nor forum.

As I only get `sha1sum` in my system, so the question is where is the `shasum` package?

Last edited by lxyu (2012-10-15 10:36:07)

Offline

#2 2012-10-15 11:04:55

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: Where do I find the package "shasum"?

$ which shasum
/usr/bin/core_perl/shasum

$ pkgfile $(which shasum)
core/perl

pkgfile can help find the package containing a file.  pkgfile is in the community repo.

An ugly way to accomplish the same task is to use Google:

site:www.archlinux.org/packages/ shasum

Offline

#3 2012-10-15 11:08:20

xzy3186
Member
From: Japan
Registered: 2012-02-01
Posts: 52
Website

Re: Where do I find the package "shasum"?

Install pkgfile from Community and search the file via

pkgfile -s xxx

Offline

#4 2012-10-15 13:02:37

lxyu
Member
From: Spirit
Registered: 2012-01-11
Posts: 11
Website

Re: Where do I find the package "shasum"?

Thank you all.

Also find it by `locate`. I forgot to `updatedb` so I didn't find it before.

$ sudo updatedb
$ locate shasum

@thisoldman, I see you use a `which shasum` so you must have manually include it in your PATH, isn't it?


Yet one more question, why `sha1sum` get the privilege to be put in `/usr/bin` while `shasum` not?

Offline

#5 2012-10-15 13:11:37

opensrcrox
Member
Registered: 2012-08-10
Posts: 32

Re: Where do I find the package "shasum"?

You can also do :

 pacman -Qo $(which shasum) 

Offline

#6 2012-10-15 13:18:58

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,392
Website

Re: Where do I find the package "shasum"?

opensrcrox wrote:

You can also do :

 pacman -Qo $(which shasum) 

No need for the which....

> pacman -Qo shasum
/usr/bin/core_perl/shasum is owned by perl 5.16.1-1

Offline

#7 2012-10-15 13:44:45

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Where do I find the package "shasum"?

@thisoldman, @xzy3186

you can simply do

$ pkgfile <query>

no need for $(which ...) or even for the -s switch, as it searches by default.

Offline

#8 2012-10-15 14:09:48

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Where do I find the package "shasum"?

Offline

Board footer

Powered by FluxBB