tech-pkg archive

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

Re: wip/pkg_summary-utils - powerful tools for pkgsrc



 >> P.S.  Does anybody know how to combine pkg_info -a|-u and -X options
 >> without writing a script?  That is I'd like to output pkg_summary
 >> only about user-installed packages.


> "pkg_info -u -X" works for me.

Can you explain the following?

  0 ~>pkg_info -X > /dev/null                              
  pkg_info: missing package name(s)
  usage: pkg_info [-BbcDdFfhIikLmNnpqRrSsVvX] [-e package] [-K pkg_dbdir]
                [-l prefix] pkg-name ...
       pkg_info [-a | -u] [flags]
       pkg_info [-Q variable] pkg-name ...
  1 ~>pkg_info -u -X > /dev/null 
  0 ~>pkg_info -u -X '*' > /dev/null 
  pkg_info: can't use both -a/-u and package name
  usage: pkg_info [-BbcDdFfhIikLmNnpqRrSsVvX] [-e package] [-K pkg_dbdir]
                [-l prefix] pkg-name ...
       pkg_info [-a | -u] [flags]
       pkg_info [-Q variable] pkg-name ...
  1 ~>pkg_info -X '*' > /dev/null     
  0 ~>

It looks like a magic :-(

According to pkg_info(8)

     pkg_info [-BbcDdFfhIikLmNnpqRrSsVvX] [-e package] [-K pkg_dbdir]
              [-l prefix] pkg-name ...
     pkg_info [-a | -u] [flags]
     pkg_info [-Q variable] pkg-name ...

that is -a|-u cannot coexist with -X. Or I read man page incorrectly?

-- 
Best regards, Aleksey Cheusov.


Home | Main Index | Thread Index | Old Index