which package a file belongs to
matthew.flaschen at gatech.edu
Sun Jan 18 16:41:17 GMT 2009
Nils Kassube wrote:
> Matthew Flaschen wrote:
>> Nils Kassube wrote:
>>> dpkg -S /usr/bin/nedit|dpkg -l $(cut -f1 -d':')
>> Doesn't work. But:
>> dpkg -l `dpkg -S /usr/bin/nedit|cut -f1 -d':'`
> Sorry, I don't understand why it shouldn't work. Here both commands have
> the same output.
Nothing is being passed to the cut command, so first you get:
cut: -: Input/output error
then dpkg -l gets no other parameters so prints everything.
Note, this is actually tested.
More information about the ubuntu-users