[Slackbuilds-users] removepkg and hyphens: weird behaviour

Niki Kovacs contact at kikinovak.net
Wed Oct 31 09:24:09 UTC 2007


Niki Kovacs a écrit :
> Hi,
> 
> I just noticed something strange. Apparently removepkg doesn't work 
> correctly when a package name contains three or more hyphens. Usually 
> it's enough to just give the plain package name as argument to 
> removepkg, say 'removepkg sqlite' or 'removepkg cups'. But I tried it on 
> a custom-built package jack-audio-connection-kit, and removepkg tells me 
> that there is no such package. I could remove the package by changing 
> into /var/log/packages and giving the full package name 
> (jack-audio-connection-kit-0.103.0-i486-1_nk) as argument.

You can test it for yourselves. There's a package on slackbuilds.org 
called perl-test-number-delta. Install it, and then try to remove it 
with only the package name as argument. removepkg will tell you what 
there is "No such package".

A possible workaround would be to rename the package with one less 
hyphen, say: perl-test-numberdelta or similar.

Niki



More information about the Slackbuilds-users mailing list