Re: port upgrades

2004-07-02 Thread Skylar Thompson
On Wed, Jun 30, 2004 at 02:22:07PM -0500, Chris wrote:
 5.2.1-RELEASE
 
 I've started using 'portupgrade' to update several ports to the latest versions, but 
 have an odd problem when it comes to certain ports.
 
 For example:
 
 server# pkg_version -v | grep Spam
 bsdpan-Mail-SpamAssassin-2.63  needs updating (port has 2.63_2)
 
 server# portupgrade bsdpan-Mail-SpamAssassin
 ---  Skipping 'mail/p5-Mail-SpamAssassin' because it is held by user (specify -f to 
 force)
 server# portupgrade -f bsdpan-Mail-SpamAssassin

Have you tried running pkgdb -F?

-- 
-- Skylar Thompson ([EMAIL PROTECTED])
-- http://www.cs.earlham.edu/~skylar/


pgpocQYl8sBq6.pgp
Description: PGP signature


Re: port upgrades

2004-06-30 Thread Phil Schulz
Chris wrote:
[...]
So I use the -f flag to force, and get several errors like:
[...]
From the portupgrade man page:
-r
--recursiveAct on all those packages depending on the given
   packages as well.
So I think you might want to run
#portupgrade -rf bsdpan-Mail-SpamAssassin
[...]
I can successfully install Mail::SpamAssassin using cpan, but it never seems to 
show up as the latest version (always seems to need upgrading when looking at pkg_version).
Are there are two different ways to install (for example) SpamAssassin (and other perl 
related ports)?
I can use cpan OR the pkg_add / portupgrade commands but not both?
Sorry, I don't know.
Phil.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: port upgrades

2004-06-08 Thread Daniela
On Tuesday 08 June 2004 00:45, Kris Kennaway wrote:
 On Mon, Jun 07, 2004 at 09:01:15PM +, Daniela wrote:
  On Monday 07 June 2004 19:35, Kris Kennaway wrote:
   On Mon, Jun 07, 2004 at 07:14:34PM +, Daniela wrote:
On Monday 07 June 2004 17:28, Tim Traver wrote:
Hi all,
Is there a way to do a quick update of a particular port
 directory ??? I don't necessarily want to do the portupgrade, but
 just get the latest port files for a particular port.
Right now, if i want to make sure the ports are up to date, I
 have to use sysinstall to download the entire port collection,
 which takes forever...
Am I missing a quick utility to just check and make sure I have
 the latest port files for one at a time ?
   
You could use CVSup to update just the directories you want, and you
can also put this into the system crontab to periodically run it.
That's pretty convenient.
  
   You _will_ run into problems if you only update parts of the ports
   collection.
 
  Well, I didn't mean upgrading of just one or two directories, but rather
  skipping directories such as the japanese ports if you don't speak
  japanese. Almost no ports depend on things in language-specific
  directories (at least not the ones I have installed).

 OK, but you still can't do some things like build an index because
 some things do still depend on those ports you're not upgrading.

While we're on the subject, how do you build an index of the binary packages 
you have? I needed this a long time ago, when I created a custom FreeBSD 
installation CD-ROM, and I thought shellscript and hand-editing were the only 
ways to do it. Recursive fetching was a pain too, even with portupgrade. How 
do you gurus solve this?

Daniela


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


Re: port upgrades

2004-06-07 Thread Kent Stewart
On Monday 07 June 2004 10:28 am, Tim Traver wrote:
Hi all,
Is there a way to do a quick update of a particular port directory
 ??? I don't necessarily want to do the portupgrade, but just get the
 latest port files for a particular port.
Right now, if i want to make sure the ports are up to date, I have
 to use sysinstall to download the entire port collection, which takes
 forever...
Am I missing a quick utility to just check and make sure I have
 the latest port files for one at a time ?
Thanks,
Tim.

You need to read the Handbook on maintaing your ports, which is now 
chapter 4. Then, install cvsup[-without-gui], copy the ports-supfile 
from the share/examples directory into a safe place, change the 
CHANGE_THIS to something real from the cvsup mirror list in the 
handbook and run it.  If you don't know where the share/examples 
directory is located do a locate ports-supfile and locate will tell 
you where it is. If you don't have locate running, do a man located and 
then run the script to build the database.

You need to run portsdb -uU to update the INDEX[.db] files and then you 
can install ports such as portupgrade that make the actually upgrade 
process simple.

I maintain that sysinstall only has value when you are doing a SYStem 
INSTALL] and should be left alone after that. I don't do that because I 
still find adding a new HD easier from sysinstall. I do not use it to 
help maintain my system or the port-system. There are tools that are 
much better suited for that task once you have a running system.

Kent


SimpleNet's Back !
[1]http://www.simplenet.com/


 References

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

-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: port upgrades

2004-06-07 Thread Daniela
On Monday 07 June 2004 17:28, Tim Traver wrote:
Hi all,
Is there a way to do a quick update of a particular port directory ???
I don't necessarily want to do the portupgrade, but just get the
latest port files for a particular port.
Right now, if i want to make sure the ports are up to date, I have to
use sysinstall to download the entire port collection, which takes
forever...
Am I missing a quick utility to just check and make sure I have the
latest port files for one at a time ?

You could use CVSup to update just the directories you want, and you can also 
put this into the system crontab to periodically run it. That's pretty 
convenient.

Daniela


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


Re: port upgrades

2004-06-07 Thread Kris Kennaway
On Mon, Jun 07, 2004 at 07:14:34PM +, Daniela wrote:
 On Monday 07 June 2004 17:28, Tim Traver wrote:
 Hi all,
 Is there a way to do a quick update of a particular port directory ???
 I don't necessarily want to do the portupgrade, but just get the
 latest port files for a particular port.
 Right now, if i want to make sure the ports are up to date, I have to
 use sysinstall to download the entire port collection, which takes
 forever...
 Am I missing a quick utility to just check and make sure I have the
 latest port files for one at a time ?
 
 You could use CVSup to update just the directories you want, and you can also 
 put this into the system crontab to periodically run it. That's pretty 
 convenient.

You _will_ run into problems if you only update parts of the ports collection.

Kris


pgpoS298uhWbZ.pgp
Description: PGP signature


Re: port upgrades

2004-06-07 Thread Daniela
On Monday 07 June 2004 19:35, Kris Kennaway wrote:
 On Mon, Jun 07, 2004 at 07:14:34PM +, Daniela wrote:
  On Monday 07 June 2004 17:28, Tim Traver wrote:
  Hi all,
  Is there a way to do a quick update of a particular port directory
   ??? I don't necessarily want to do the portupgrade, but just get the
   latest port files for a particular port.
  Right now, if i want to make sure the ports are up to date, I have
   to use sysinstall to download the entire port collection, which takes
   forever...
  Am I missing a quick utility to just check and make sure I have the
  latest port files for one at a time ?
 
  You could use CVSup to update just the directories you want, and you can
  also put this into the system crontab to periodically run it. That's
  pretty convenient.

 You _will_ run into problems if you only update parts of the ports
 collection.

Well, I didn't mean upgrading of just one or two directories, but rather 
skipping directories such as the japanese ports if you don't speak japanese. 
Almost no ports depend on things in language-specific directories (at least 
not the ones I have installed).

Daniela


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


Re: port upgrades

2004-06-07 Thread Kent Stewart
On Monday 07 June 2004 02:01 pm, Daniela wrote:
 On Monday 07 June 2004 19:35, Kris Kennaway wrote:
  On Mon, Jun 07, 2004 at 07:14:34PM +, Daniela wrote:
   On Monday 07 June 2004 17:28, Tim Traver wrote:
   Hi all,
   Is there a way to do a quick update of a particular port
directory ??? I don't necessarily want to do the portupgrade,
but just get the latest port files for a particular port.
   Right now, if i want to make sure the ports are up to date,
I have to use sysinstall to download the entire port
collection, which takes forever...
   Am I missing a quick utility to just check and make sure I
have the latest port files for one at a time ?
  
   You could use CVSup to update just the directories you want, and
   you can also put this into the system crontab to periodically run
   it. That's pretty convenient.
 
  You _will_ run into problems if you only update parts of the ports
  collection.

 Well, I didn't mean upgrading of just one or two directories, but
 rather skipping directories such as the japanese ports if you don't
 speak japanese. Almost no ports depend on things in language-specific
 directories (at least not the ones I have installed).


Well, there are side effects that you may not know or think about. For 
example, many of the ports include pieces from other pieces. If you 
don't upgrade everything, you could be using old information. Make is 
very particular and the only safe way to refuse, is to delete the 
refused tree, and then modify /usr/ports/Makefile to ignore those 
pieces. If you follow those steps and something breaks during the make 
index process, there is a lot that you don't understand about make and 
will learn soon :). 

FWIW, you don't save a lot of disk space by cvsuping ports-all and you 
may save yourself a lot of problems you wouldn't think about.

Kent

-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: port upgrades

2004-06-07 Thread Kris Kennaway
On Mon, Jun 07, 2004 at 09:01:15PM +, Daniela wrote:
 On Monday 07 June 2004 19:35, Kris Kennaway wrote:
  On Mon, Jun 07, 2004 at 07:14:34PM +, Daniela wrote:
   On Monday 07 June 2004 17:28, Tim Traver wrote:
   Hi all,
   Is there a way to do a quick update of a particular port directory
??? I don't necessarily want to do the portupgrade, but just get the
latest port files for a particular port.
   Right now, if i want to make sure the ports are up to date, I have
to use sysinstall to download the entire port collection, which takes
forever...
   Am I missing a quick utility to just check and make sure I have the
   latest port files for one at a time ?
  
   You could use CVSup to update just the directories you want, and you can
   also put this into the system crontab to periodically run it. That's
   pretty convenient.
 
  You _will_ run into problems if you only update parts of the ports
  collection.
 
 Well, I didn't mean upgrading of just one or two directories, but rather 
 skipping directories such as the japanese ports if you don't speak japanese. 
 Almost no ports depend on things in language-specific directories (at least 
 not the ones I have installed).

OK, but you still can't do some things like build an index because
some things do still depend on those ports you're not upgrading.

Kris


pgpFN8xS1bntr.pgp
Description: PGP signature


Re: Port Upgrades

2004-01-21 Thread Ion-Mihai Tetcu
On Wed, 21 Jan 2004 01:55:38 -0800
Loren M. Lang [EMAIL PROTECTED] wrote:

 When I install a new port, does it upgrade any already installed ports
 if the new port depends on them.  

No.

 And to upgrade any security fixes,
 just running cvsup on the ports tree, then running portupgrade?

Yes. portupgrade  -r and eventually -f.

 Also, is there any way to automate this, I have a freebsd mail server
 setup for a company that I may not get to visit very often.  Then again,
 it may not be the wisest to upgrade software with no one to monitor it.

Yes, it is not. portugrtade tries to keep the upgrade safe, but you
should take a look nevertheless.

 Is there any way to select just major security and avoid upgrading ports
 that just add features?

Subscribe t [EMAIL PROTECTED] and read the commit message. Or use
freshports.org for the same thing.

 And does the freebsd kernel also get upgraded.  Would I have to
 reinstall it or would the port do it automatically?

Please, please read The cutting edge chapter of the handbook.


-- 
IOnut
Unregistered ;) FreeBSD user
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Port Upgrades

2004-01-21 Thread Jonathan Chen
On Wed, Jan 21, 2004 at 01:55:38AM -0800, Loren M. Lang wrote:
 When I install a new port, does it upgrade any already installed ports
 if the new port depends on them.  And to upgrade any security fixes,
 just running cvsup on the ports tree, then running portupgrade?

Installing a new port doesn't upgrade any installed port. You have to
use portupgrade to do this.

 Also, is there any way to automate this, I have a freebsd mail server
 setup for a company that I may not get to visit very often.  Then again,
 it may not be the wisest to upgrade software with no one to monitor it.

Portupgrade works fine most of the time; but when it doesn't upgrade
ports properly (the rare instance) manual intervention is required -
trouble is one needs to monitor for these...

 Is there any way to select just major security and avoid upgrading ports
 that just add features?

Well, you need to look at the commits on the ports if you want to do
this. Thankfully http://www.freshports.org/ exists.

 And does the freebsd kernel also get upgraded.  Would I have to
 reinstall it or would the port do it automatically?

The kernel doesn't get upgraded automatically. You have to cvsup to
the latest sources and build the userland and kernel (NOTE: You have
to do *both* of these, otherwise you will have Real Problems). Check
out the Handbook for more details.

Cheers.
-- 
Jonathan Chen [EMAIL PROTECTED]
--
 A person should be able to do a small bit of everything,
specialisation is for insects
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Port Upgrades

2004-01-21 Thread Matthew Seaman
On Wed, Jan 21, 2004 at 01:55:38AM -0800, Loren M. Lang wrote:
 When I install a new port, does it upgrade any already installed ports
 if the new port depends on them.  And to upgrade any security fixes,
 just running cvsup on the ports tree, then running portupgrade?

Generally, no.  If you go into the port directory and delete and
re-install the port, it won't check that all of the dependencies are
up to date.  portupgrade(1) is the solution to that and other
considerations of keeping an array of ported software up to date.

There's no distinction made between updates to the ports tree to close
security holes or to introduce new features.  You should set up a
watch on the ports you're interested in at http://www.freshports.org/
-- the commit log messages will tell you why ports were updated.
 
 Also, is there any way to automate this, I have a freebsd mail server
 setup for a company that I may not get to visit very often.  Then again,
 it may not be the wisest to upgrade software with no one to monitor it.

It usually helps to have a spare system you can run the same software
on, to test out any updates before you apply them to the production
server.  It's also good to have good backups and be capable of backing
out any changes if necessary.
 
 Is there any way to select just major security and avoid upgrading ports
 that just add features?

Only by keeping a close eye on commit messages in the ports CVS,
following the freebsd-ports@ mailing list, and by general awareness of
security issues around the net.
 
 And does the freebsd kernel also get upgraded.  Would I have to
 reinstall it or would the port do it automatically?

No, updating the ports is a completely separate operation to updating
the base system.  Unlike dealing with ports, by tracking one of the
security branches of the OS, you will automatically get just the
security fixes and any really vital bug-fixes.  You can receive
notifications of problems in the base system by subscribing to the
[EMAIL PROTECTED] and [EMAIL PROTECTED] lists.

Updating the base system involves compiling and reinstalling all of
the userland utilities, system shared libraries etc.  You have to
recompile and reinstall the kernel in synch with that, or various
utilities like top(1) and ps(1) will cease to work.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature