Re: Is there a way to compare what is in the ports tree with what is installed?

2007-11-05 Thread Rod Person
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Sun, 04 Nov 2007 20:57:19 -0600
Jonathan Horne [EMAIL PROTECTED] wrote:
 after i update my ports, and i want to see what currently needs to be
 updated:
 
 pkg_version -v|grep needs
 
 this will give you a run down of everything that has a newer version  
 in your ports tree.

Or:

portversion -v -l 

- -- 
Rod

http://roddierod.homeunix.net:8080
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (FreeBSD)

iD8DBQFHLwElZe6B7B2ImpsRAhD5AJ47x4G/RUllEUqDhq0Qe/1WMpKFLgCfc5Hm
RCbvfDyPN6yT/yc//Qna0OQ=
=Tbox
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: Is there a way to compare what is in the ports tree with what is installed?

2007-11-05 Thread Giorgos Keramidas
On 2007-11-05 14:53, Brett Davidson [EMAIL PROTECTED] wrote:
 ie. If I had a particular version of the ports tree on a server, how
 could I check to see if any of the programs in that tree were actually
 installed?

 Is there a simple command or sequence of commands to do this?

Try running the pkg_version(1) utility.  For instance, running it here,
I can see output like this:

ksh$ pkg_version | grep -v '=$'
ORBit2  
aalib   
[...]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Is there a way to compare what is in the ports tree with what is installed?

2007-11-05 Thread Giorgos Keramidas
On 2007-11-05 02:36, Pollywog [EMAIL PROTECTED] wrote:
  dir /var/d/pkg | grep portname

 My Linux systems have a dir command but my FreeBSD does not.
 Is there something I need to install?

Not really.  The ls(1) utility works fine :-)

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Is there a way to compare what is in the ports tree with what is installed?

2007-11-05 Thread [LoN]Kamikaze
Brett Davidson wrote:
 ie. If I had a particular version of the ports tree on a server, how
 could I check to see if any of the programs in that tree were actually
 installed?
 
 Is there a simple command or sequence of commands to do this?
 

# pkg_version -Iql\=
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Is there a way to compare what is in the ports tree with what is installed?

2007-11-05 Thread Jerry McAllister
On Mon, Nov 05, 2007 at 02:36:00AM +, Pollywog wrote:

 On Monday 05 November 2007 02:04:39 Robert Huff wrote:
  Brett Davidson writes:
ie. If I had a particular version of the ports tree on a server,
how could I check to see if any of the programs in that tree were
actually installed?
  
Is there a simple command or sequence of commands to do this?
 
  dir /var/d/pkg | grep portname
 
 My Linux systems have a dir command but my FreeBSD does not.
 Is there something I need to install?

Yes, just install your own alias.
For example, in my .cshrc file for the accounts I use I put:

  alias dir ls -lAF

and then I have a dir.

I also alias ls to:

  alias ls ls -F

and lo to: 

  alias lo logout

and numerous others.
That is the normal way of creating these simple things.

jerry

 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Is there a way to compare what is in the ports tree with what is installed?

2007-11-05 Thread Byung-Hee HWANG
On Mon, 2007-11-05 at 14:53 +1300, Brett Davidson wrote:
 ie. If I had a particular version of the ports tree on a server, how 
 could I check to see if any of the programs in that tree were actually 
 installed?
 
 Is there a simple command or sequence of commands to do this?

Usually i search someting with Google before study man(1) carefully.
Google is best friend for me. And below link is the last result:
http://www.google.com/search?hl=enq=pkg_versionbtnG=Google+Search

Sincerely,

-- 
Does this man have real balls?
You're asking if he is a Sicilian. NO.
-- Vito Corleone and Tom Hagen, Chapter 2, page 66-67

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Is there a way to compare what is in the ports tree with what is installed?

2007-11-04 Thread Brett Davidson
ie. If I had a particular version of the ports tree on a server, how 
could I check to see if any of the programs in that tree were actually 
installed?


Is there a simple command or sequence of commands to do this?

--
Brett Davidson
Systems Engineer
--
Net24 Limited
Web: www.net24.co.nz
Phone: 0800 5000 24 | DDI: +64 3 962 9518
--
// web hosting / email hosting / data backup 
// our reputation for reliability precedes us


This transmission is for the intended addressee only and is confidential
information. If you have received this transmission in error, please
delete it and notify the sender.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Is there a way to compare what is in the ports tree with what is installed?

2007-11-04 Thread Robert Huff
Brett Davidson writes:

  ie. If I had a particular version of the ports tree on a server,
  how could I check to see if any of the programs in that tree were
  actually installed?
  
  Is there a simple command or sequence of commands to do this?

dir /var/d/pkg | grep portname


Robert Huff
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Is there a way to compare what is in the ports tree with what is installed?

2007-11-04 Thread Pollywog
On Monday 05 November 2007 02:04:39 Robert Huff wrote:
 Brett Davidson writes:
   ie. If I had a particular version of the ports tree on a server,
   how could I check to see if any of the programs in that tree were
   actually installed?
 
   Is there a simple command or sequence of commands to do this?

   dir /var/d/pkg | grep portname

My Linux systems have a dir command but my FreeBSD does not.
Is there something I need to install?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Is there a way to compare what is in the ports tree with what is installed?

2007-11-04 Thread RW
On Mon, 05 Nov 2007 14:53:48 +1300
Brett Davidson [EMAIL PROTECTED] wrote:

 ie. If I had a particular version of the ports tree on a server, how 
 could I check to see if any of the programs in that tree were
 actually installed?
 
 Is there a simple command or sequence of commands to do this?
 
see pkg_version[1]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Is there a way to compare what is in the ports tree with what is installed?

2007-11-04 Thread James
On 11/4/07, Pollywog [EMAIL PROTECTED] wrote:

 On Monday 05 November 2007 02:04:39 Robert Huff wrote:
  Brett Davidson writes:
ie. If I had a particular version of the ports tree on a server,
how could I check to see if any of the programs in that tree were
actually installed?
  
Is there a simple command or sequence of commands to do this?
 
dir /var/d/pkg | grep portname

 My Linux systems have a dir command but my FreeBSD does not.
 Is there something I need to install?
 ___



I'm guessing it's just an alias for ls.



 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Is there a way to compare what is in the ports tree with what is installed?

2007-11-04 Thread Jonathan Horne

Quoting RW [EMAIL PROTECTED]:


On Mon, 05 Nov 2007 14:53:48 +1300
Brett Davidson [EMAIL PROTECTED] wrote:


ie. If I had a particular version of the ports tree on a server, how
could I check to see if any of the programs in that tree were
actually installed?

Is there a simple command or sequence of commands to do this?


see pkg_version[1]
___


after i update my ports, and i want to see what currently needs to be updated:

pkg_version -v|grep needs

this will give you a run down of everything that has a newer version  
in your ports tree.

--
Jonathan Horne
http://dfwlpiki.dfwlp.org
[EMAIL PROTECTED]


This message was sent using IMP, the Internet Messaging Program.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Is there a way to compare what is in the ports tree with what is installed?

2007-11-04 Thread Brett Davidson

Robert Huff wrote:

Brett Davidson writes:

  

 ie. If I had a particular version of the ports tree on a server,
 how could I check to see if any of the programs in that tree were
 actually installed?
 
 Is there a simple command or sequence of commands to do this?



dir /var/d/pkg | grep portname


Robert Huff
  
Ah. Not quite but thanks for telling me the location of the pkg 
directory (btw, it's var/db/


I've now worked out how to get what I want via :

cd /var/db/pkg
for i in *
do
MATCHES=`grep -c $i /usr/ports/INDEX-6`
if [ $MATCHES -gt 0 ]
then
 #echo Pattern $i Matched $MATCHES times
else
 echo Pattern $i not matched
fi
done

In my case I was looking for files that weren't at the same revision 
level as the ports tree but both options are accounted for.


Thanks all.


--
Brett Davidsonls -la 
Systems Engineer

--
Net24 Limited
Web: www.net24.co.nz
Phone: 0800 5000 24 | DDI: +64 3 962 9518
--
// web hosting / email hosting / data backup 
// our reputation for reliability precedes us


This transmission is for the intended addressee only and is confidential
information. If you have received this transmission in error, please
delete it and notify the sender.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Is there a way to compare what is in the ports tree with what is installed?

2007-11-04 Thread Robert Huff
Pollywog writes:

  dir /var/d/pkg | grep portname
  
  My Linux systems have a dir command but my FreeBSD does not.
  Is there something I need to install?

My bad - dir is a longstanding alias for ls -al !* | more



Robert Huff
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Is there a way to compare what is in the ports tree with what is installed?

2007-11-04 Thread Chris Haulmark
 
 ie. If I had a particular version of the ports tree on a server, how
 could I check to see if any of the programs in that tree were actually
 installed?
 
 Is there a simple command or sequence of commands to do this?

pkg_info can be used to see what ports are currently installed.

Chris

 
 --
 Brett Davidson
 Systems Engineer
 --
 Net24 Limited
 Web: www.net24.co.nz
 Phone: 0800 5000 24 | DDI: +64 3 962 9518
 --
 // web hosting / email hosting / data backup
 // our reputation for reliability precedes us
 
 This transmission is for the intended addressee only and is
 confidential
 information. If you have received this transmission in error, please
 delete it and notify the sender.
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-
 [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]