[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: PROPOSAL: command line for LSB package program



Wichert Akkerman <wichert@wiggy.net> writes:

>>   check   - check packages (md5 checksums, etc.)

> dpkg right now has no way to do this..

Then we remove the feature for LSB 1.0.
 
>>   list    - list all installed packages if no arguments, arguments are
>>             package names

> Any preferred layout?

How about:

------- start of cut text --------------
name:<package name><whitespace>version:<package version>
------- end ----------------------------

> >   info    - return package info
> 
> What information? In what format?

<first package>
<blank line>
<next package>
<blank line>
...

<first package>:

long format:

------- start of cut text --------------
name:<package name>
version:<package version>
<additional defined fields, including method for vendor specific fields?>
------- end ----------------------------

>>   extract - extract contents into current dir if no arguments, argument
>>             is extraction directory

> Any guarantees that this will be done safely in case if trojan packages?
> This can be nasty, if you consider a tar-file like this:

Yes, we must guarantee that if we include that option.  The wrapper
should fail if it is not running a safe version of tar.

RPM uses cpio, which if I recall correctly, does not allow leading /.
 
- Dan



Reply to: