Re: Listing installed ports without any ports dependent on it

From: parv (parv_fm_at_emailgroups.net)
Date: 06/03/03

  • Next message: Gianmarco Giovannelli: "adsl pci cards"
    Date: Tue, 3 Jun 2003 01:38:43 -0400
    To: Adam <blueeskimo@gmx.net>
    
    

    in message <1054613446.16970.83.camel@jake>,
    wrote Adam thusly...
    >
    > On Mon, 2003-06-02 at 23:53, Joe Marcus Clarke wrote:
    >
    > > It's not Python, but this script should work.
    > >
    > > #!/bin/sh
    > >
    > > for i in `pkg_info | cut -f1 -d ' '`; do
    > > if [ -z "`pkg_info -qR ${i}`" ]; then
    > > echo ${i}
    > > fi
    > > done
    >
    > Excellent! This does exactly what I was after!

    Above program gives the exact result as the one i posted, except one
    non essential "pkgdb" line. What did i miss?

      - Parv

    -- 
    A programmer, budding Unix system administrator, and amateur photographer
    ISO employment.  Details...
      http://www103.pair.com/parv/work/
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
    

  • Next message: Gianmarco Giovannelli: "adsl pci cards"

    Relevant Pages

    • Re: perl to python
      ... sed and perl can let you do all that quick command line stuff. ... into a full blown script. ... scripts, call it from the python interpreter, whatever I need. ... If I stick to the traditional unix approach, ...
      (comp.lang.python)
    • Re: Learning Tkinter
      ... and how the command option is used to call the function callback. ... gui programming to see if the python programs I have written can be made ... search their computer for this file, execute the python code and then ... This is the meaning of the test on __name__: this magical variable is set to the string '__main__' if and only if the current script is the top-most one, i.e the one you ran python on. ...
      (comp.lang.python)
    • Correct way to handle independent interpreters when embedding in a single-threaded C++ app
      ... The Python interpreter is ... interpreter and provides an extension module to expose ... manage each script runs in a new interpreter. ... globals that could cause issues. ...
      (comp.lang.python)
    • Re: bash vs. python scripts - which one is better?
      ... Quick, take your one liner, have it traverse an entire directory tree ... For me I just need to change my small script into a function, ... That is where shell falls down. ... alternatives like Python, Perl or Ruby laying around to be used. ...
      (Debian-User)
    • Re: Correct way to handle independent interpreters when embedding in a single-threaded C++ app
      ... Since you are not running any python scripts or calling any python ... This will also ensure that execution of one script wont ... the script and thus shut down the interpreter. ...
      (comp.lang.python)