Re: Problem using Portmaster to upgrade installed ports via packages only

2010-07-05 Thread Alexandre L.
First, Thanks Doug for responding to my mails. 

  I don't know (or understand) if I have to set a value
 to
  PM_SU_VERBOSE
 
 That depends on your goal. Why are you setting this?
I thought that PM_SU_VERBOSE will explain the errors about my sudo problem. I 
can use portmaster with sudo only with the command : 
#sudo portmaster -options
but not with .portmasterrc, or /etc/portmaster.rc

  I have tried to set PM_SU_VERBOSE=/usr/local/bin/sudo
  without success If you can help me here, I have read
 the manpage
  hundred times, but haven't found where I am wrong.
 
 Please copy and paste the parts of the man page that are
 confusing. That
 will help me improve it.

I think I have misunderstood the using of PM_SU_VERBOSE. I thought that 
PM_SU_VERBOSE was the verbose mode of PM_SU_CMD. As you describe in your mail, 
the using of this option is not applied for my case. 

 Meanwhile, you might also consider simply running
 portmaster as root.
 There is nothing preferable about running it with sudo, it
 is a feature
 that I added because users so often requested it.
I have apply your advice, and I haven't got problem. Now I can install ports 
from packages (if available) or from sources.
 
Really, thanks again Doug for your help, and advices.

Alexandre.




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


Re: Problem using Portmaster to upgrade installed ports via packages only

2010-07-02 Thread Doug Barton
Apologies for not answering sooner ...

On 06/29/10 13:37, Alexandre L. wrote:
 I have done tests last days, and now I can set PACKAGESITE correctly
 in user's .cshrc (I have unset the parameter in root's .cshrc). Else,
 I have set /usr/local/etc/portmaster.rc, as described in the
 portmaster's manpage.
 
 Here my /usr/local/etc/portmaster.rc
 
 PM_SU_VERBOSE=

It's not necessary in shell scripting to set empty variables like this.
That's particularly true for the flag variables in portmaster rc
files. If the variable isn't actually set to something then what you
have here is exactly the same (to portmaster) as if you had not included
it at all.

 PM_SU_CMD=/usr/local/bin/sudo

This is fine, assuming that you want to be able to type 'portmaster ...'
as a non-root user and have it be able to do things that usually require
root privileges. However, there are a lot of other things that need to
be done to set that up. They are not difficult, but the details matter.
Please look closely at the section about this in the portmaster man page
for more details.

 I don't know (or understand) if I have to set a value to
 PM_SU_VERBOSE

That depends on your goal. Why are you setting this?

 I have tried to set PM_SU_VERBOSE=/usr/local/bin/sudo
 without success If you can help me here, I have read the manpage
 hundred times, but haven't found where I am wrong.

Please copy and paste the parts of the man page that are confusing. That
will help me improve it.

 Then I have tried without the line PM_SU_VERBOSE, just with
 PM_SU_CMD=/usr/local/bin/sudo I can install without problem packages
 with $ portmaster -P -a -x openoffice
 
 But if there is no package available for the port, I got the message
 (it is an example) :
 
 = libpng-1.4.3.tar.xz doesn't seem to exist in
 /usr/ports/distfiles//. = /usr/ports/distfiles/ is not writable by
 you; cannot fetch. 

That tells me that you haven't followed the instructions in the man page
for setting up your environment for sudo. So once again, if there are
specific parts of the man page that you find confusing, let me know what
they are so that I can improve it.

Meanwhile, you might also consider simply running portmaster as root.
There is nothing preferable about running it with sudo, it is a feature
that I added because users so often requested it.


hope this helps,

Doug

-- 

... and that's just a little bit of history repeating.
-- Propellerheads

Improve the effectiveness of your Internet presence with
a domain name makeover!http://SupersetSolutions.com/

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


Re: Problem using Portmaster to upgrade installed ports via packages only

2010-06-29 Thread Alexandre L.
I have done tests last days, and now I can set PACKAGESITE correctly in user's 
.cshrc (I have unset the parameter in root's .cshrc).
Else, I have set /usr/local/etc/portmaster.rc, as described in the portmaster's 
manpage.

Here my /usr/local/etc/portmaster.rc

PM_SU_VERBOSE=
PM_SU_CMD=/usr/local/bin/sudo

I don't know (or understand) if I have to set a value to PM_SU_VERBOSE
I have tried to set PM_SU_VERBOSE=/usr/local/bin/sudo without success
If you can help me here, I have read the manpage hundred times, but haven't 
found where I am wrong. 

Then I have tried without the line PM_SU_VERBOSE, just with 
PM_SU_CMD=/usr/local/bin/sudo
I can install without problem packages with 
$ portmaster -P -a -x openoffice

But if there is no package available for the port, I got the message (it is an 
example) : 

= libpng-1.4.3.tar.xz doesn't seem to exist in /usr/ports/distfiles//.
= /usr/ports/distfiles/ is not writable by you; cannot fetch.
*** Error code 1

Stop in /usr/ports/graphics/png.
*** Error code 1

Stop in /usr/ports/graphics/png.

=== make failed for graphics/png
=== Aborting update

=== Update for png-1.4.1_1 failed
=== Aborting update

=== There are messages from installed ports to display,
   but first take a moment to review the error messages
   above.  Then press Enter when ready to proceed. 

In the 2 cases, my user's password has been asked, and I have typed it.

My portmaster version is 2.32.

I haven't got problem if I do 
$ sudo portmaster -P -a -x openoffice

I think my problem come from the parameter for sudo in portmaster.rc but I 
don't know how to set it. I have really read the manpage a lot.

Thanks for your help.




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


Problem using Portmaster to upgrade installed ports via packages only

2010-06-24 Thread Alexandre L.
Hi,

On my FreeBSD box running 8.0-RELEASE-p3, I have tried to use PORTMASTER tool 
to upgrade my ports via packages only.
Then I added the following line to my user's .cshrc file and root's .cshrc 
file, and re-opened user's session : 
setenv PACKAGESITE 
ftp://ftp.fr.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/All/

Then I typed this linde into a console : 
% sudo portmaster -PP -a -x openoffice

I past the output : 
=== The following actions will be taken if you choose to proceed:
Upgrade automounter-1.4.2 to automounter-1.4.3
Upgrade liveMedia-2010.05.29,1 to liveMedia-2010.06.11,1
Upgrade portmaster-2.29 to portmaster-2.32
Upgrade bash-4.1.5_2 to bash-4.1.7
Upgrade iso-codes-3.16_1 to iso-codes-3.17
Upgrade p5-libwww-5.834 to p5-libwww-5.836
Upgrade tiff-3.9.3 to tiff-3.9.4
Upgrade filezilla-3.3.2.1_2 to filezilla-3.3.3
Upgrade gnupg-2.0.14_2 to gnupg-2.0.15
Upgrade libassuan-1.0.5 to libassuan-2.0.0
Upgrade wine-1.2.r3,1 to wine-1.2.r4,1

=== Proceed? y/n [y]

=== Starting install for for ports that need updating ===

=== Launching child to update automounter-1.4.2

=== Port directory: /usr/ports/sysutils/automounter
=== Checking package repository for latest available version

=== The newest available package (automounter-1.3.4)
   is older than the version in ports (automounter-1.4.3)

=== Try --packages-if-newer, or do not use -PP/--packages-only
=== Aborting update

=== Update for automounter-1.4.2 failed
=== Aborting update

The strange thing is the 'automounter-1.4.3' package is available on the FTP 
repository configured for PACKAGESITE.

Elsewhere, I have tested these FTP repositories (for PACKAGESITE variable) 
without success : 
ftp://ftp.fr.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/Lastest/
ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/Lastest/
ftp://ftp.fr.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/All/

Thanks in advance for your help.




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


Re: Problem using Portmaster to upgrade installed ports via packages only

2010-06-24 Thread b. f.
 Hi,

 On my FreeBSD box running 8.0-RELEASE-p3, I have tried to use PORTMASTER tool 
 to upgrade my ports via packages only.
 Then I added the following line to my user's .cshrc file and root's .cshrc 
 file, and re-opened user's session :
 setenv PACKAGESITE 
 ftp://ftp.fr.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/All/

 Then I typed this linde into a console :
 % sudo portmaster -PP -a -x openoffice

 I past the output :
 === The following actions will be taken if you choose to proceed:
 Upgrade automounter-1.4.2 to automounter-1.4.3
 Upgrade liveMedia-2010.05.29,1 to liveMedia-2010.06.11,1
 Upgrade portmaster-2.29 to portmaster-2.32
 Upgrade bash-4.1.5_2 to bash-4.1.7
 Upgrade iso-codes-3.16_1 to iso-codes-3.17
 Upgrade p5-libwww-5.834 to p5-libwww-5.836
 Upgrade tiff-3.9.3 to tiff-3.9.4
 Upgrade filezilla-3.3.2.1_2 to filezilla-3.3.3
 Upgrade gnupg-2.0.14_2 to gnupg-2.0.15
 Upgrade libassuan-1.0.5 to libassuan-2.0.0
 Upgrade wine-1.2.r3,1 to wine-1.2.r4,1

 === Proceed? y/n [y]

 === Starting install for for ports that need updating ===

 === Launching child to update automounter-1.4.2

 === Port directory: /usr/ports/sysutils/automounter
 === Checking package repository for latest available version

 === The newest available package (automounter-1.3.4)
is older than the version in ports (automounter-1.4.3)

 === Try --packages-if-newer, or do not use -PP/--packages-only
 === Aborting update

 === Update for automounter-1.4.2 failed
 === Aborting update

 The strange thing is the 'automounter-1.4.3' package is available on the FTP 
 repository configured for PACKAGESITE.

 Elsewhere, I have tested these FTP repositories (for PACKAGESITE variable) 
 without success :
 ftp://ftp.fr.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/Lastest/
 ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/Lastest/
 ftp://ftp.fr.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/All/

 Thanks in advance for your help.



You should be able to use:

ftp://ftp.fr.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable

portmaster will trim trailing /, /Latest, /All.  But be aware that as
8-STABLE gets farther away from 8.0-RELEASE, some of the packages
there may not work with your 8.0-RELEASE-pX version, because your
version only incorporates critical fixes to 8.0-RELEASE, and not all
of the changes in 8-STABLE.

Do you have any old packages for automounter in your local package
directory? If so, remove them and then re-try the update.  It's
possible that an old local package may confuse portmaster into
thinking that the local package is the latest available package.

If the problem still occurs, send a verbose output to the list, using
portmaster -v 

b.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Problem using Portmaster to upgrade installed ports via packages only

2010-06-24 Thread Doug Barton
On 06/24/10 06:10, b. f. wrote:
 Hi,
 
 On my FreeBSD box running 8.0-RELEASE-p3, I have tried to use
 PORTMASTER tool to upgrade my ports via packages only. Then I added
 the following line to my user's .cshrc file and root's .cshrc file,
 and re-opened user's session : setenv PACKAGESITE
 ftp://ftp.fr.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/All/


 Then I typed this linde into a console :
 % sudo portmaster -PP -a -x openoffice

There is a procedure for using sudo with portmaster described in the man
page. That procedure is preferable because it uses your user environment
for everything except where root privileges are actually necessary.

What I suspect is happening here is that sudo is stripping your
environment which means that portmaster never sees the PACKAGESITE
variable. I tried it just now with csh, setting the environment variable
as you did, but using portmaster with sudo in the way described in the
man page and it worked fine.

If you would prefer to continue using 'sudo portmaster' that's fine, but
you'll need to place the relevant information (such as PACKAGESITE) in
~/.portmasterrc or /usr/local/etc/portmaster.rc. BTW, if you're going to
go this route, you're probably better off with PACKAGEROOT, but either
way should work. See the man page for more information.

 Elsewhere, I have tested these FTP repositories (for PACKAGESITE
 variable) without success : 
 ftp://ftp.fr.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/Lastest/

 ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8-stable/Lastest/

Spelling counts. :)


hth,

Doug

-- 

... and that's just a little bit of history repeating.
-- Propellerheads

Improve the effectiveness of your Internet presence with
a domain name makeover!http://SupersetSolutions.com/

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


Can I use porteasy to update ALL currently installed ports?

2009-07-07 Thread x
I want to update the sources of all currenntly installed ports present 
in /usr/ports

I use porteasy to install ports (I dont have/want  the whole tree).

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


Re: upgrading installed ports: time to do it ?

2009-06-29 Thread dan
On Wednesday 24 June 2009 17:19:09 you wrote:
 On Monday, 22 June 2009 16:48:02 RW wrote:
  On Mon, 22 Jun 2009 20:58:41 +0100
 
  Chris Whitehouse cwhi...@onetel.com wrote:
   I'll probably get flamed for this but since I've been using
   ports-mgmt/portmanager I've almost forgotten
   about /usr/ports/UPDATING and all that pkgdb -Fu stuff or whatever it
   was. I've upgraded ports just by doing 'portmanager -u' over one or
   two quite major changes and not had any problems that haven't been
   down to an individual ports.
 
  You still need to read UPDATING, portmanager handles some of the
  issues automatically, but not all.
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to
  freebsd-questions-unsubscr...@freebsd.org

 Hello,

 Here is a perl hack I use to automatically read and parse UPDATING as part
 of my daily upgrade routine.  It is part of a larger set of five scripts
 which use:
  1. csup to update ports
  2. make index to update the /usr/ports/INDEX
  3. pkg_version to identify the ports that need upgrading
  4. portfetch to download the tarballs
  5. a script to display the relevant contents, if any, of UPDATING using
 the hack shown below and the contents identified in step 3 above.

 These five scripts are combined in a master script (csup-all) which I
 invoke the first thing in the morning.  After doing some other morning
 chores I then run portconfig -a -v to set up any configuration settings
 prior to running portmaster -a -u.  Everything is automatic except for
 the configuration.

 Here is the perl hack.  It can be improved by comparing the ports that need
 to be updated (step 3) with the ports specified within UPDATING (step 5). 
 The embedded ansi codes will work with the default FreeBSD console
 settings, otherwise they can be removed.

 #!/usr/bin/perl
 #
 # file:csup-update.pl
 #
 # created: 2006-07-16
 #
 # purpose: To review update notes in /usr/ports/UPDATING
 #  This program will only display those notes issued
 #  since last csup
 #
 # algorithm: Each line of the file /usr/ports/UPDATING is scanned and if
 #  it finds a date in the form ^mmdd$ the date is assigned
 #  to the variable $date.  Otherwise all non-date lines are printed
 #  to STDOUT.  As soon as this program finds a date older than the
 #  last update this program quits and prints an appropriate closing
 #  message.
 #
 unless ( open ( MYFILE, /usr/ports/UPDATING ) ) {
 die (Cannot open input file /usr/ports/UPDATING.\n) ;
 }

 unless ( open ( LASTUPDATE, /root/bin/csup-lastupdate.txt ) ) {
 die (Cannot open file csup-lastupdate.txt.\n) ;
 }

 $eof = '' ;
 $date = $lastupdate = LASTUPDATE ;
 $line = MYFILE ;
 $count = 0 ;

 while ( $line ne $eof ) {
 if ( $line =~ /^2\d{7}/ ) {
 $date = $line ;
 $date =~ tr/://d ;
 $count++ ;
 }

 if ( ( $date - $lastupdate ) = 0 ) {
 if ( $line =~ /^2\d{7}/ ) {
 print (^[[32m$line^[[0m) ;
 } else {
 print (^[[0m$line) ;
 }
 $line = MYFILE ;
 $date = $lastupdate ;
 } else {
 $count-- ;
 if ( $count == 0 ) {
 print ( ^[[36mThere are no updates to review. ) ;
 } elsif ( $count == 1 ) {
 print ( ^[[36mThere is only one update to review. ) ;
 } else {
 print ( ^[[36mThere are $count updates to review. ) ;
 }
 chop  ( $lastupdate ) ;
 print ( The last run of csup was on $lastupdate.^[[0m\n\n  ) ;

 exit ;
 }
 }
 # EoF

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

Hello mfv !

Thanks for sharing your perl hack and your experience :-)

I do not know anything about PERL, but I am starting taking a look at this !

THanks

dan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: upgrading installed ports: time to do it ?

2009-06-25 Thread Chris Whitehouse

dan wrote:

On Tuesday 23 June 2009 23:21:21 Chris Whitehouse wrote:

RW wrote:

On Mon, 22 Jun 2009 20:58:41 +0100

Chris Whitehouse cwhi...@onetel.com wrote:

I'll probably get flamed for this but since I've been using
ports-mgmt/portmanager I've almost forgotten
about /usr/ports/UPDATING and all that pkgdb -Fu stuff or whatever it
was. I've upgraded ports just by doing 'portmanager -u' over one or
two quite major changes and not had any problems that haven't been
down to an individual ports.

You still need to read UPDATING, portmanager handles some of the
issues automatically, but not all.

Not trolling but can you give me some examples?

Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
freebsd-questions-unsubscr...@freebsd.org


Yes. I think there is at least one. Please, consider to correct me if I am 
wrong.


Yesterday, reading the contents of /usr/src/UPDATING in the source tree (using 
portupdate-scan) I found :


[...]
20090608:
  AFFECTS: users of lang/python* and py-*
  AUTHOR: m...@freebsd.org

  The default version of Python has been changed from 2.5.x to 2.6.x.
  If you have 2.5.x installed, perform an upgrade of lang/python25 to
  lang/python26 with the following command:
[...]

Can portmanager know that the default version of a port has been changed and 
then you need to do the upgrade to the newer major version ?


I don't know. I will put testing it on my todo list (which I really do 
hope to get around to :)


Chris



And if it can  know that... can also portmanager know that 


[...]
Once the installed Python has been updated to 2.6, by using the
  method above, it is required to run the upgrade-site-packages target in
  lang/python to assure that site-packages are made available to the new 
Python

  version.

 [...]   ?

If, otherwise, using portmanager you end up with a newer version of python 2.5 
(for example)... are you sure that every upgrade in the future will work 
flawlessly ? After Reading the UPDATING file a guy will


[...]   set the   PYTHON_DEFAULT_VERSION variable to 'python2.5' without 
quotes in  make.conf, then go to lang/python and perform the following

  command:
[...]

will portmanager do the same ?


d


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



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


Re: upgrading installed ports: time to do it ?

2009-06-25 Thread Chris Whitehouse

RW wrote:

On Tue, 23 Jun 2009 22:21:21 +0100
Chris Whitehouse cwhi...@onetel.com wrote:


RW wrote:

On Mon, 22 Jun 2009 20:58:41 +0100
Chris Whitehouse cwhi...@onetel.com wrote:

I'll probably get flamed for this but since I've been using 
ports-mgmt/portmanager I've almost forgotten

about /usr/ports/UPDATING and all that pkgdb -Fu stuff or whatever
it was. I've upgraded ports just by doing 'portmanager -u' over
one or two quite major changes and not had any problems that
haven't been down to an individual ports.

You still need to read UPDATING, portmanager handles some of the
issues automatically, but not all.

Not trolling but can you give me some examples?


Many of of the entries aren't solely to do with guiding
portmaster/portupgrade through the upgrade, they may also involve
migrating configuration or user data, or performing other
administrative tasks.

Portmanger does cope with most of the portupgrade -o  and
portupgrade -r entries, although sometime it will need to be run (or
rerun) in pristine-mode. 


just curious, do you know this because you know how they all work or 
have you tried them. And how does portmaster fit in? Does it use the 
same 'leaf-nodes first' algorithm as portmanager?




However, it doesn't always work correctly when software has been
repackaged because this can create temporary unrecorded conflicts
which are difficult for any tool to deal with. If you see any
instructions to remove packages before upgrading, it's prudent to follow
them. 


Thanks, I'll pay more attention. Maybe I got lucky in the past.

Chris


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



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


Re: upgrading installed ports: time to do it ?

2009-06-25 Thread RW
On Thu, 25 Jun 2009 20:20:12 +0100
Chris Whitehouse cwhi...@onetel.com wrote:

 RW wrote:

  Portmanger does cope with most of the portupgrade -o  and
  portupgrade -r entries, although sometime it will need to be run
  (or rerun) in pristine-mode. 
 
 just curious, do you know this because you know how they all work or 
 have you tried them. And how does portmaster fit in? Does it use the 
 same 'leaf-nodes first' algorithm as portmanager?

It's leaf-last, the leaves are on the top of the tree. 

All the upgrade tools build in dependency order, but portmanager also
rebuilds ports that directly depend on the ports it's upgraded
(originally it included indirect dependencies, but that's now only done
in pristine mode). In other words it, more or less, does the equivalent
of portupgrade -fr as a matter of course.

As regards portupgrade -o, it depends on the circumstances. In the
case of perl5.8 to perl5.10, I would expect that it would continue with
perl5.8 until something actually needs perl5.10. It would then detect
a conflict, remove perl5.8, install perl5.10 and then rebuild everything
that depended on perl5.8. Essentially it would do the right thing. I'm
not sure about python, it's bit more complicated, but I would guess it
would be similar to perl.


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


Re: upgrading installed ports: time to do it ?

2009-06-24 Thread mfv
On Monday, 22 June 2009 16:48:02 RW wrote:
 On Mon, 22 Jun 2009 20:58:41 +0100

 Chris Whitehouse cwhi...@onetel.com wrote:
  I'll probably get flamed for this but since I've been using
  ports-mgmt/portmanager I've almost forgotten
  about /usr/ports/UPDATING and all that pkgdb -Fu stuff or whatever it
  was. I've upgraded ports just by doing 'portmanager -u' over one or
  two quite major changes and not had any problems that haven't been
  down to an individual ports.

 You still need to read UPDATING, portmanager handles some of the
 issues automatically, but not all.
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 freebsd-questions-unsubscr...@freebsd.org

Hello,

Here is a perl hack I use to automatically read and parse UPDATING as part of 
my daily upgrade routine.  It is part of a larger set of five scripts which 
use:
 1. csup to update ports
 2. make index to update the /usr/ports/INDEX
 3. pkg_version to identify the ports that need upgrading
 4. portfetch to download the tarballs
 5. a script to display the relevant contents, if any, of UPDATING using the
hack shown below and the contents identified in step 3 above.

These five scripts are combined in a master script (csup-all) which I invoke 
the first thing in the morning.  After doing some other morning chores I then 
run portconfig -a -v to set up any configuration settings prior to running 
portmaster -a -u.  Everything is automatic except for the configuration.

Here is the perl hack.  It can be improved by comparing the ports that need to 
be updated (step 3) with the ports specified within UPDATING (step 5).  The 
embedded ansi codes will work with the default FreeBSD console settings, 
otherwise they can be removed.

#!/usr/bin/perl 

#
# file:csup-update.pl
#   

# created: 2006-07-16   

#   

# purpose: To review update notes in /usr/ports/UPDATING

#  This program will only display those notes issued

#  since last csup  
  
#   

# algorithm: Each line of the file /usr/ports/UPDATING is scanned and if

#  it finds a date in the form ^mmdd$ the date is assigned  
   
#  to the variable $date.  Otherwise all non-date lines are printed 

#  to STDOUT.  As soon as this program finds a date older than the  

#  last update this program quits and prints an appropriate closing 

#  message. 

#   

unless ( open ( MYFILE, /usr/ports/UPDATING ) ) {
die (Cannot open input file /usr/ports/UPDATING.\n) ;
}

unless ( open ( LASTUPDATE, /root/bin/csup-lastupdate.txt ) ) {
die (Cannot open file csup-lastupdate.txt.\n) ;
}

$eof = '' ;
$date = $lastupdate = LASTUPDATE ;
$line = MYFILE ;
$count = 0 ;

while ( $line ne $eof ) {
if ( $line =~ /^2\d{7}/ ) {
$date = $line ;
$date =~ tr/://d ;
$count++ ;
}

if ( ( $date - $lastupdate ) = 0 ) {
if ( $line =~ /^2\d{7}/ ) {
print (^[[32m$line^[[0m) ;
} else {
print (^[[0m$line) ;
}
$line = MYFILE ;
$date = $lastupdate ;
} else {
$count-- ;
if ( $count == 0 ) {
print ( ^[[36mThere are no updates to review. ) ;
} elsif ( $count == 1 ) {
print ( ^[[36mThere is only one update to review. ) ;
} else {
print ( ^[[36mThere are $count updates to review. ) ;
}
chop  ( $lastupdate ) ;
print ( The last run of csup was on $lastupdate.^[[0m\n\n  ) ;

exit ;
}
}
# EoF

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


Thanks [upgrading installed ports: time to do it ?]

2009-06-23 Thread dan
Hello !

Thanks alll of you for taking time to answer my mail. I really appreciate it.

I have (well...the system has) succesfully done the upgrade.

I used both pkg_updating and portupdate-scan to scan UPDATING [pkg_updating 
did not show an entry suggesting to update python to version 2.6 (which 
Portupdate-scan did)].
AS UPDATING suggests, I made the switch from python 2.5 to python 2.6 (using 
portupgrade).
Then I did a mass upgrade... portupgrade -ab --batch ... It took 6h30 
upgrading 40 ports (not many ports because I installed this system only few 
months ago). [Now I should find where the backup packages have been sent]

Thanks again and see you here !

d

p.s. Robert I meant to say if you prefer to upgrade just a selection of the 
ports or all of the ports together ;-)




On Tuesday 23 June 2009 00:34:59 Charlie Kester wrote:
 On Mon 22 Jun 2009 at 13:48:02 PDT RW wrote:
 On Mon, 22 Jun 2009 20:58:41 +0100
 
 Chris Whitehouse cwhi...@onetel.com wrote:
  I'll probably get flamed for this but since I've been using
  ports-mgmt/portmanager I've almost forgotten
  about /usr/ports/UPDATING and all that pkgdb -Fu stuff or whatever it
  was. I've upgraded ports just by doing 'portmanager -u' over one or
  two quite major changes and not had any problems that haven't been
  down to an individual ports.
 
 You still need to read UPDATING, portmanager handles some of the issues
 automatically, but not all.

 that durned human element again!

 would be nice if a port upgrade tool did that for you, displayed any
 entries related to ports that need updating, and gave you a chance to
 postpone the update until you've taken whatever actions UPDATING
 suggests

 would require UPDATING to be written in a consistent, machine-readable
 format
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 freebsd-questions-unsubscr...@freebsd.org


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


Re: Thanks [upgrading installed ports: time to do it ?]

2009-06-23 Thread Charlie Kester

On Tue 23 Jun 2009 at 07:09:28 PDT dan wrote:


I used both pkg_updating and portupdate-scan to scan UPDATING [pkg_updating
did not show an entry suggesting to update python to version 2.6 (which
Portupdate-scan did)].


Well, I just learned something from this thread.  I didn't know about
these tools.  Thanks for mentioning them! I usually use portupgrade, in
a rather simple-minded way.  Now you've inspired me to spend some time
reading the manpages, to see how I can improve my routine.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: upgrading installed ports: time to do it ?

2009-06-23 Thread Chris Whitehouse

RW wrote:

On Mon, 22 Jun 2009 20:58:41 +0100
Chris Whitehouse cwhi...@onetel.com wrote:

I'll probably get flamed for this but since I've been using 
ports-mgmt/portmanager I've almost forgotten

about /usr/ports/UPDATING and all that pkgdb -Fu stuff or whatever it
was. I've upgraded ports just by doing 'portmanager -u' over one or
two quite major changes and not had any problems that haven't been
down to an individual ports.


You still need to read UPDATING, portmanager handles some of the
issues automatically, but not all.


Not trolling but can you give me some examples?

Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: upgrading installed ports: time to do it ?

2009-06-23 Thread Chris Whitehouse

Jerry wrote:

On Mon, 22 Jun 2009 20:58:41 +0100
Chris Whitehouse cwhi...@onetel.com wrote:

I'll probably get flamed for this but since I've been using 
ports-mgmt/portmanager I've almost forgotten

about /usr/ports/UPDATING and all that pkgdb -Fu stuff or whatever it
was. I've upgraded ports just by doing 'portmanager -u' over one or
two quite major changes and not had any problems that haven't been
down to an individual ports.

I've never seen any reasons given for not using portmanager, just it 
seems to be getting quietly deprecated, which is a shame because it 
works supremely well.


Having said that why not check out
http://freebsd-custom.wikidot.com/, the new binary ports upgrade
system and save yourself a bunch of compile time.

Chris


I use it myself, It just works. I would also add -p -l to the
command line. that way you have a log created if something does go
wrong. It will also fix up any outdated dependencies.


I do use logging. In fact I do 'portmanager -s  somefile', extract a 
list of ports to be upgraded and run the list through a loop which does 
'make config' for each port, _then_ run 'portmanager -l -u' so it runs 
completely unattended. It does indeed just works which is down to the 
way it works out to do leaf ports first and work backwards.


portmaster looks like it has some nice features, including doing all the 
configs first, but I don't know if it does as good a job as portmanager 
in deciding what order to do things.


Chris

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


Re: upgrading installed ports: time to do it ?

2009-06-23 Thread dan
On Tuesday 23 June 2009 23:21:21 Chris Whitehouse wrote:
 RW wrote:
  On Mon, 22 Jun 2009 20:58:41 +0100
 
  Chris Whitehouse cwhi...@onetel.com wrote:
  I'll probably get flamed for this but since I've been using
  ports-mgmt/portmanager I've almost forgotten
  about /usr/ports/UPDATING and all that pkgdb -Fu stuff or whatever it
  was. I've upgraded ports just by doing 'portmanager -u' over one or
  two quite major changes and not had any problems that haven't been
  down to an individual ports.
 
  You still need to read UPDATING, portmanager handles some of the
  issues automatically, but not all.

 Not trolling but can you give me some examples?

 Chris
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 freebsd-questions-unsubscr...@freebsd.org

Yes. I think there is at least one. Please, consider to correct me if I am 
wrong.

Yesterday, reading the contents of /usr/src/UPDATING in the source tree (using 
portupdate-scan) I found :

[...]
20090608:
  AFFECTS: users of lang/python* and py-*
  AUTHOR: m...@freebsd.org

  The default version of Python has been changed from 2.5.x to 2.6.x.
  If you have 2.5.x installed, perform an upgrade of lang/python25 to
  lang/python26 with the following command:
[...]

Can portmanager know that the default version of a port has been changed and 
then you need to do the upgrade to the newer major version ?

And if it can  know that... can also portmanager know that 

[...]
Once the installed Python has been updated to 2.6, by using the
  method above, it is required to run the upgrade-site-packages target in
  lang/python to assure that site-packages are made available to the new 
Python
  version.

 [...]   ?

If, otherwise, using portmanager you end up with a newer version of python 2.5 
(for example)... are you sure that every upgrade in the future will work 
flawlessly ? After Reading the UPDATING file a guy will

[...]   set the   PYTHON_DEFAULT_VERSION variable to 'python2.5' without 
quotes in  make.conf, then go to lang/python and perform the following
  command:
[...]

will portmanager do the same ?


d


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


Re: upgrading installed ports: time to do it ?

2009-06-23 Thread RW
On Tue, 23 Jun 2009 22:21:21 +0100
Chris Whitehouse cwhi...@onetel.com wrote:

 RW wrote:
  On Mon, 22 Jun 2009 20:58:41 +0100
  Chris Whitehouse cwhi...@onetel.com wrote:
  
  I'll probably get flamed for this but since I've been using 
  ports-mgmt/portmanager I've almost forgotten
  about /usr/ports/UPDATING and all that pkgdb -Fu stuff or whatever
  it was. I've upgraded ports just by doing 'portmanager -u' over
  one or two quite major changes and not had any problems that
  haven't been down to an individual ports.
  
  You still need to read UPDATING, portmanager handles some of the
  issues automatically, but not all.
 
 Not trolling but can you give me some examples?

Many of of the entries aren't solely to do with guiding
portmaster/portupgrade through the upgrade, they may also involve
migrating configuration or user data, or performing other
administrative tasks.

Portmanger does cope with most of the portupgrade -o  and
portupgrade -r entries, although sometime it will need to be run (or
rerun) in pristine-mode. 

However, it doesn't always work correctly when software has been
repackaged because this can create temporary unrecorded conflicts
which are difficult for any tool to deal with. If you see any
instructions to remove packages before upgrading, it's prudent to follow
them. 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: upgrading installed ports: time to do it ?

2009-06-22 Thread Mel Flynn
On Sunday 21 June 2009 10:38:39 danny wrote:

 At the moment I am focuing the attention to the '/usr/ports/UPDATING' file.
 The question that arose is the following: is there any automated way to
 check if any of the port to be upgraded has specific upgrading notes
 written in that file ?

/usr/sbin/pkg_updating, but it's flaky since /usr/ports/UPDATING is human 
written. It's a school example of a file that should really be XML: human 
readable/writeable and machine parseable, but it's not. So we end up with 
entries like:
  AFFECTS: users of Japanese and Chinese fonts
  AFFECTS: users of linux Fedora 8 infrastructure ports
  AFFECTS: users of Tcl/Tk

which cannot ever be translated to ports by a machine.
-- 
Mel

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


Re: upgrading installed ports: time to do it ?

2009-06-22 Thread Chris Whitehouse

Chris Rees wrote:

2009/6/21 danny mesli...@yahoo.fr:

Hi list members ,

I frequently update the contents of the ports tree but I have never upgraded
any port. I am studying the way to do it, by following the handbook and an
article on The FreeBSD Diary about the use of portupgrade.
At the moment I am focuing the attention to the '/usr/ports/UPDATING' file.
The question that arose is the following: is there any automated way to check
if any of the port to be upgraded has specific upgrading notes written in
that file ?
Do you prefer doing a mass or selective upgrade ?

Thanks !

dan




I'll probably get flamed for this but since I've been using 
ports-mgmt/portmanager I've almost forgotten about /usr/ports/UPDATING 
and all that pkgdb -Fu stuff or whatever it was. I've upgraded ports 
just by doing 'portmanager -u' over one or two quite major changes and 
not had any problems that haven't been down to an individual ports.


I've never seen any reasons given for not using portmanager, just it 
seems to be getting quietly deprecated, which is a shame because it 
works supremely well.


Having said that why not check out http://freebsd-custom.wikidot.com/, 
the new binary ports upgrade system and save yourself a bunch of compile 
time.


Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: upgrading installed ports: time to do it ?

2009-06-22 Thread Jerry
On Mon, 22 Jun 2009 20:58:41 +0100
Chris Whitehouse cwhi...@onetel.com wrote:

 I'll probably get flamed for this but since I've been using 
 ports-mgmt/portmanager I've almost forgotten
 about /usr/ports/UPDATING and all that pkgdb -Fu stuff or whatever it
 was. I've upgraded ports just by doing 'portmanager -u' over one or
 two quite major changes and not had any problems that haven't been
 down to an individual ports.
 
 I've never seen any reasons given for not using portmanager, just it 
 seems to be getting quietly deprecated, which is a shame because it 
 works supremely well.
 
 Having said that why not check out
 http://freebsd-custom.wikidot.com/, the new binary ports upgrade
 system and save yourself a bunch of compile time.
 
 Chris

I use it myself, It just works. I would also add -p -l to the
command line. that way you have a log created if something does go
wrong. It will also fix up any outdated dependencies.

-- 
Jerry
ges...@yahoo.com

Genealogy, n.:
An account of one's descent from an ancestor
who did not particularly care to trace his own.
-- Ambrose Bierce, The Devil's Dictionary
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: upgrading installed ports: time to do it ?

2009-06-22 Thread RW
On Mon, 22 Jun 2009 20:58:41 +0100
Chris Whitehouse cwhi...@onetel.com wrote:

 I'll probably get flamed for this but since I've been using 
 ports-mgmt/portmanager I've almost forgotten
 about /usr/ports/UPDATING and all that pkgdb -Fu stuff or whatever it
 was. I've upgraded ports just by doing 'portmanager -u' over one or
 two quite major changes and not had any problems that haven't been
 down to an individual ports.

You still need to read UPDATING, portmanager handles some of the
issues automatically, but not all.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: upgrading installed ports: time to do it ?

2009-06-22 Thread Charlie Kester

On Mon 22 Jun 2009 at 13:48:02 PDT RW wrote:

On Mon, 22 Jun 2009 20:58:41 +0100
Chris Whitehouse cwhi...@onetel.com wrote:


I'll probably get flamed for this but since I've been using
ports-mgmt/portmanager I've almost forgotten
about /usr/ports/UPDATING and all that pkgdb -Fu stuff or whatever it
was. I've upgraded ports just by doing 'portmanager -u' over one or
two quite major changes and not had any problems that haven't been
down to an individual ports.


You still need to read UPDATING, portmanager handles some of the issues
automatically, but not all.


that durned human element again!

would be nice if a port upgrade tool did that for you, displayed any
entries related to ports that need updating, and gave you a chance to
postpone the update until you've taken whatever actions UPDATING
suggests

would require UPDATING to be written in a consistent, machine-readable
format
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


upgrading installed ports: time to do it ?

2009-06-21 Thread danny
Hi list members ,

I frequently update the contents of the ports tree but I have never upgraded 
any port. I am studying the way to do it, by following the handbook and an 
article on The FreeBSD Diary about the use of portupgrade.
At the moment I am focuing the attention to the '/usr/ports/UPDATING' file. 
The question that arose is the following: is there any automated way to check 
if any of the port to be upgraded has specific upgrading notes written in 
that file ? 
Do you prefer doing a mass or selective upgrade ? 

Thanks !

dan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


upgrading installed ports: time to do it ?

2009-06-21 Thread Robert Huff

danny writes:

  At the moment I am focuing the attention to the
  '/usr/ports/UPDATING' file.  The question that arose is the
  following: is there any automated way to check if any of the port
  to be upgraded has specific upgrading notes written in that file?

Not that I know of.
However: on a single machine, it shouldn't be that hard to just
remember.  On one machine with almost 1000 ports installed, less
that 200 get upgraded more than one per year.  Of those in the 200
that involve code, maybe 50 get upgraded more than once every three
months.  And those tend to be either trivial, or huge (gnome, wine,
openoffice, etc.). 

  Do you prefer doing a mass or selective upgrade? 

The difference?


Robert Huff

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


Re: upgrading installed ports: time to do it ?

2009-06-21 Thread Chris Rees
2009/6/21 danny mesli...@yahoo.fr:
 Hi list members ,

 I frequently update the contents of the ports tree but I have never upgraded
 any port. I am studying the way to do it, by following the handbook and an
 article on The FreeBSD Diary about the use of portupgrade.
 At the moment I am focuing the attention to the '/usr/ports/UPDATING' file.
 The question that arose is the following: is there any automated way to check
 if any of the port to be upgraded has specific upgrading notes written in
 that file ?
 Do you prefer doing a mass or selective upgrade ?

 Thanks !

 dan

I would tend to upgrade perl first; have a look in UPDATING to see how
it's done. That'll upgrade the majority of your ports too.

You may also have a small problem if you're still running XFree86
(which you probably will if you've had your system a while). Look in
UPDATING for that too, and then just do a portupgrade -aP.

Good luck, and I hope your processor's properly cooled!

Chris



-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in a mailing list?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: upgrading installed ports: time to do it ?

2009-06-21 Thread Alex Stangl
On Sun, Jun 21, 2009 at 09:07:51PM +0100, Chris Rees wrote:
 2009/6/21 danny mesli...@yahoo.fr:
  I frequently update the contents of the ports tree but I have never upgraded
  any port. I am studying the way to do it, by following the handbook and an
  article on The FreeBSD Diary about the use of portupgrade.
  At the moment I am focuing the attention to the '/usr/ports/UPDATING' file.
  The question that arose is the following: is there any automated way to 
  check
  if any of the port to be upgraded has specific upgrading notes written in
  that file ?

Try ports-mgmt/portupdate-scan. It attempts to filter UPDATING to only
show entries pertinent to your installed ports.

Alex
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Performing installed ports upgrade / leaving some software intact

2009-01-17 Thread Frank Shute
On Thu, Jan 15, 2009 at 07:17:27AM +0100, Zbigniew Szalbot wrote:

 Hello,
 
  1/ backing up the hacked [mailman] files and restoring them later (but I
  will
  overwrite the newer files with older ones perhaps breaking something).
  2/ making them read only (but the end result will be the same and
  upgrading as root I will overwrite them anyway).
 
  Keep in mind mailman is all python.  There really is nothing to recompile
  after a system upgrade.  (Unless you are upgrading python which you aren't).
 
 I am not so sure. According to
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/updating-upgrading-freebsdupdate.html
 
 All third party software will now need to be rebuilt and
 re-installed. This is required as installed software may depend on
 libraries which have been removed during the upgrade process. The
 ports-mgmt/portupgrade command may be used to automate this process.
 The following commands may be used to begin this process:

This is prefaced by:

Note: Depending on whether any libraries version numbers got bumped,
there may only be two install phases instead of three.

Rebuilding all the installed ports being the third phase.

Since you're just going from 7.0 to 7.1 this shouldn't be the case
unless specifically mentioned in /usr/src/UPDATING

snip

Regards,

-- 

 Frank 


 Contact info: http://www.shute.org.uk/misc/contact.html 

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


reinstall all p5 installed ports with portmaster

2009-01-15 Thread bsd

Hello,

I was looking for an efficient way to reinstall (recompile due to an  
update in the perl port) all installed p5 ports…


I have done that manually, but I am certain there is a better way to  
do that…



I have tried:

# portmaster -rdf p5-


But that didn't work as I had to re-install all ports…



Thanks for your help.




Gregober --- PGP ID -- 0x1BA3C2FD
bsd @at@ todoo.biz


P Please consider your environmental responsibility before printing  
this e-mail



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


Re: reinstall all p5 installed ports with portmaster [solved]

2009-01-15 Thread bsd


Le 15 janv. 09 à 12:19, Herbert J. Skuhra a écrit :


2009/1/15 bsd b...@todoo.biz:

Hello,

I was looking for an efficient way to reinstall (recompile due to  
an update

in the perl port) all installed p5 ports…


Have you tried perl-after-upgrade? See UPDATING and man page.


No…

That's exactly what I was looking for…
Works perfectly.




I have done that manually, but I am certain there is a better way  
to do

that…


I have tried:

# portmaster -rdf p5-


But that didn't work as I had to re-install all ports…


Have you tried portmaster without -rf ?


Yes, but no success…




- Herbert
___



Gregober --- PGP ID -- 0x1BA3C2FD
bsd @at@ todoo.biz


P Please consider your environmental responsibility before printing  
this e-mail



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


Re: reinstall all p5 installed ports with portmaster

2009-01-15 Thread Herbert J. Skuhra
2009/1/15 bsd b...@todoo.biz:
 Hello,

 I was looking for an efficient way to reinstall (recompile due to an update
 in the perl port) all installed p5 ports…

Have you tried perl-after-upgrade? See UPDATING and man page.

 I have done that manually, but I am certain there is a better way to do
 that…


 I have tried:

 # portmaster -rdf p5-


 But that didn't work as I had to re-install all ports…

Have you tried portmaster without -rf ?

- Herbert
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

Re: reinstall all p5 installed ports with portmaster

2009-01-15 Thread Gelsema, P (Patrick) - FreeBSD
On Thu, January 15, 2009 12:19, Herbert J. Skuhra wrote:
 2009/1/15 bsd b...@todoo.biz:
 Hello,

 I was looking for an efficient way to reinstall (recompile due to an
 update
 in the perl port) all installed p5 ports…

 Have you tried perl-after-upgrade? See UPDATING and man page.

 I have done that manually, but I am certain there is a better way to do
 that…


 I have tried:

 # portmaster -rdf p5-


 But that didn't work as I had to re-install all ports…

 Have you tried portmaster without -rf ?

try: portupgrade -f 'pkg_info | grep p5- | cut -d  -f1'



 - Herbert
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 freebsd-questions-unsubscr...@freebsd.org

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


Performing installed ports upgrade / leaving some software intact

2009-01-14 Thread Zbigniew Szalbot
Dear all,

I am now full into planning the 7.0-RELEASE to 7.1-RELEASE upgrade. I
know that at the end of the day it will also mean upgrading all ports
(portupgrade -af). I have one port - mailman - which I have customized
a lot and do not really want to upgrade it as it will most likely mean
I will have to hack a few files again.

What options do I have so that I do not break the setup?

I am thinking of:

1/ backing up the hacked files and restoring them later (but I will
overwrite the newer files with older ones perhaps breaking something).
2/ making them read only (but the end result will be the same and
upgrading as root I will overwrite them anyway).

And that would be it. My wisdom ends here. Is there any option to
survive the ports upgrade? :)

If not, I guess I will just have to hack Mailman files again after the
upgrade...

-- 
Zbigniew Szalbot
www.slowo.pl
www.fairtrade.net.pl
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Performing installed ports upgrade / leaving some software intact

2009-01-14 Thread Steve Bertrand
Zbigniew Szalbot wrote:
 Dear all,
 
 I am now full into planning the 7.0-RELEASE to 7.1-RELEASE upgrade. I
 know that at the end of the day it will also mean upgrading all ports
 (portupgrade -af). I have one port - mailman - which I have customized
 a lot and do not really want to upgrade it as it will most likely mean
 I will have to hack a few files again.
 
 What options do I have so that I do not break the setup?
 
 I am thinking of:
 
 1/ backing up the hacked files and restoring them later (but I will
 overwrite the newer files with older ones perhaps breaking something).
 2/ making them read only (but the end result will be the same and
 upgrading as root I will overwrite them anyway).
 
 And that would be it. My wisdom ends here. Is there any option to
 survive the ports upgrade? :)
 
 If not, I guess I will just have to hack Mailman files again after the
 upgrade...

Can you verify that the original copy of the files you've hacked have
indeed been modified in the upgraded version?

Perhaps you could download the source for both the new version in ports,
and the original version, and find out exactly what, if any changes have
been made to your modified files.

Steve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Performing installed ports upgrade / leaving some software intact

2009-01-14 Thread Roland Smith
On Wed, Jan 14, 2009 at 07:03:02PM +0100, Zbigniew Szalbot wrote:
 Dear all,
 
 I am now full into planning the 7.0-RELEASE to 7.1-RELEASE upgrade. I
 know that at the end of the day it will also mean upgrading all ports
 (portupgrade -af). 

Not necessarily. Upgrading all ports is only mandatory after a major
version update, e.g. from 6.x to 7.x because of changed shared library
versions. A point release should not affect shared library versions.

Personally, I like to keep the ports on my desktop updated every other
week or so, depending on if I see something interesting on freshports...

 I have one port - mailman - which I have customized
 a lot and do not really want to upgrade it as it will most likely mean
 I will have to hack a few files again.
 
 What options do I have so that I do not break the setup?

 I am thinking of:
 
 1/ backing up the hacked files and restoring them later (but I will
 overwrite the newer files with older ones perhaps breaking something).

You should merge any differences by hand instead of overwriting
them. 'diff -u' is your friend there.

 2/ making them read only (but the end result will be the same and
 upgrading as root I will overwrite them anyway).

'chflags schg,sunlnk files' (as root) will do the trick. Even root
cannot overwrite these without removing the flags.
 
 And that would be it. My wisdom ends here. Is there any option to
 survive the ports upgrade? :)

Touch /var/db/pkg/mailman/+IGNOREME. This should make both portmaster
and portupgrade leave this port alone.

 If not, I guess I will just have to hack Mailman files again after the
 upgrade...

Or see if you can get your changes comitted upstream. Maybe as OPTIONS? 

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgp6T2lWu2KuF.pgp
Description: PGP signature


Re: Performing installed ports upgrade / leaving some software intact

2009-01-14 Thread Jeffrey Goldberg

On Jan 14, 2009, at 12:03 PM, Zbigniew Szalbot wrote:

1/ backing up the hacked [mailman] files and restoring them later  
(but I will

overwrite the newer files with older ones perhaps breaking something).
2/ making them read only (but the end result will be the same and
upgrading as root I will overwrite them anyway).


Keep in mind mailman is all python.  There really is nothing to  
recompile after a system upgrade.  (Unless you are upgrading python  
which you aren't).


Cheers,

-j
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Performing installed ports upgrade / leaving some software intact

2009-01-14 Thread Zbigniew Szalbot
Hello,

 1/ backing up the hacked [mailman] files and restoring them later (but I
 will
 overwrite the newer files with older ones perhaps breaking something).
 2/ making them read only (but the end result will be the same and
 upgrading as root I will overwrite them anyway).

 Keep in mind mailman is all python.  There really is nothing to recompile
 after a system upgrade.  (Unless you are upgrading python which you aren't).

I am not so sure. According to
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/updating-upgrading-freebsdupdate.html

All third party software will now need to be rebuilt and
re-installed. This is required as installed software may depend on
libraries which have been removed during the upgrade process. The
ports-mgmt/portupgrade command may be used to automate this process.
The following commands may be used to begin this process:

So my thinking is that by issuing portupgrade -af both python and
mailman will get reinstalled. However, the option suggested by Roland
(thank you!) of touching /var/db/pkg/mailman/+IGNOREME seems very
interesting. I must read more about it.

Thank you all!

-- 
Zbigniew Szalbot
www.slowo.pl
www.fairtrade.net.pl
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Date/time installed ports have been updated on a system?

2008-12-01 Thread Ewald Jenisch
Hi,

Is there any way to determine when upgrades to installed ports have
been done on a system? I did a portupgrade -arR recently and want to
know which ports have been upgraded in that process (and no I didn't
run that portupgrade under script...)

Couldn't find an option to pkg_info, pkgdb etc...

Thanks much in advance for any clue,
-ewald



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


Re: Date/time installed ports have been updated on a system?

2008-12-01 Thread RW
On Mon, 1 Dec 2008 16:12:49 +0100
Ewald Jenisch [EMAIL PROTECTED] wrote:

 Hi,
 
 Is there any way to determine when upgrades to installed ports have
 been done on a system? I did a portupgrade -arR recently and want to
 know which ports have been upgraded in that process (and no I didn't
 run that portupgrade under script...)

pkg_glob(1) can show package installed before or after either a time
or a particular port.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Date/time installed ports have been updated on a system?

2008-12-01 Thread Robert Huff
RW writes:

   Is there any way to determine when upgrades to installed ports have
   been done on a system? I did a portupgrade -arR recently and want to
   know which ports have been upgraded in that process (and no I didn't
   run that portupgrade under script...)
  
  pkg_glob(1) can show package installed before or after either a time
  or a particular port.

One can also send the output to a file, and grep your chosen
ports or use tail -f.
I do not recommend doing this with portupgrade -a unless you
know the list will be fairly short.  (Imagine rebuilding OpenOffice,
KDE, Java, FireFox, )


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: Date/time installed ports have been updated on a system?

2008-12-01 Thread Chris Whitehouse

Robert Huff wrote:

RW writes:


  Is there any way to determine when upgrades to installed ports have
  been done on a system? I did a portupgrade -arR recently and want to
  know which ports have been upgraded in that process (and no I didn't
  run that portupgrade under script...)
 
 pkg_glob(1) can show package installed before or after either a time

 or a particular port.


One can also send the output to a file, and grep your chosen
ports or use tail -f.
I do not recommend doing this with portupgrade -a unless you
know the list will be fairly short.  (Imagine rebuilding OpenOffice,
KDE, Java, FireFox, )



For future upgrades, portmanager (ports-mgmt/portmanager) will log if 
you tell it to, alternatively you can make it tell you what ports need 
updating and why, without actually upgrading anything.


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


Search for files in not installed ports

2008-04-23 Thread Anselm Strauss

Hi,

is there an easy way to find the port that will install me a specific  
file? So far, I only found the following:


# find /usr/ports -name pkg-plist | xargs -I {} grep -H 'bin/wish' {}
/usr/ports/chinese/tk83/pkg-plist:bin/wish%%TK_VER%%
/usr/ports/devel/sourcenav/pkg-plist:bin/wish8.3
/usr/ports/japanese/tk80/pkg-plist:bin/wish8.0jp
/usr/ports/japanese/tkstep80/pkg-plist:bin/wishstep8.0jp
/usr/ports/x11-toolkits/tk80/pkg-plist:bin/wish8.0
/usr/ports/x11-toolkits/tk82/pkg-plist:bin/wish%%TK_VER%%
/usr/ports/x11-toolkits/tk83/pkg-plist:bin/wish%%TK_VER%%
/usr/ports/x11-toolkits/tk84/pkg-plist:bin/wish%%TK_VER%%
/usr/ports/x11-toolkits/tk85/pkg-plist:bin/wish%%TK_VER%%
#

Is there a make target that lists all files installed by a port?

Cheers,
Anselm

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


Re: Search for files in not installed ports

2008-04-23 Thread Andrew Pantyukhin
On Wed, Apr 23, 2008 at 10:10:31PM +0200, Anselm Strauss wrote:
 Hi,
 
 is there an easy way to find the port that will install me a specific file? 
 So far, I only found the following:
 
 # find /usr/ports -name pkg-plist | xargs -I {} grep -H 'bin/wish' {}

That's the right way to do it, but have a look at portsearch from
ports.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Build Binary Packages from Installed Ports

2006-04-04 Thread Jason C. Wells
The new (to me) ports tools are pretty slick.  Is there a way to build a 
binary package for each installed port without upgrading or rebuilding 
each installed port?


As I read the man pages the only thing close to this is 'portupgrade 
-afp' which will give me the full set of packages, but insists on 
rebuilding everything first.


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


Re: Build Binary Packages from Installed Ports

2006-04-04 Thread Kris Kennaway
On Tue, Apr 04, 2006 at 08:40:02PM -0700, Jason C. Wells wrote:
 The new (to me) ports tools are pretty slick.  Is there a way to build a 
 binary package for each installed port without upgrading or rebuilding 
 each installed port?

pkg_create -b

Kris


pgpp6mZi0Y3DX.pgp
Description: PGP signature


How to package up (all) installed ports

2005-02-17 Thread Danny Pansters
What would be a good way to create binary packages of all/most of my currently 
installed ports (without rebuilding as make package does)? 

I want to move my entire setup to another disk (array) and like to get rid of 
any acumulated junk in the process so best would be to get packages from my 
current system, make world and kernel on the new disk (array) and then 
install the packages or vice versa. Would save a few days of compiling.

Thanks,

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


Re: How to package up (all) installed ports

2005-02-17 Thread Alejandro Pulver
On Fri, 18 Feb 2005 00:09:47 +0100
Danny Pansters [EMAIL PROTECTED] wrote:

 What would be a good way to create binary packages of all/most of my 
 currently 
 installed ports (without rebuilding as make package does)? 
 
 I want to move my entire setup to another disk (array) and like to get rid of 
 any acumulated junk in the process so best would be to get packages from my 
 current system, make world and kernel on the new disk (array) and then 
 install the packages or vice versa. Would save a few days of compiling.
 
 Thanks,
 
 Dan

Hello,

The command to create packages of the ports installed in the system is 
pkg_create(1), it is used with the -b option (in this case), like this:

pkg_create -b installed-port-name

The name of the installed port is as outputed by pkg_info(1).

The default format is .tar.gz (.tgz), but the -j option allows to use bzip2.

I made a (simple) shell script to create packages of all the ports installed in 
the system.

--BEGIN--
#!/bin/sh

# Shell script to create packages of all the ports installed in the system.
# Usage: 'sh package-ports.sh'
# Will create the packages in the current directory.

PORTS=`pkg_info | awk '{print $1}'` # Filter the description.
NUM_PORTS=`echo $PORTS | awk 'END {print NR}'`
BZIP=-j   # Use bzip2 instead of gzip.
PKGCMD=pkg_create $BZIP -b# Command to create package.

echo Packaging $NUM_PORTS ports

# Process one port at time.

for PORT in $PORTS
do
echo Packaging port \$PORT\
$PKGCMD $PORT
done

echo Done

exit 0
--END

To use it create a directory to store the packages (like 'mkdir packages'),
save the script there and run it with 'sh script', or './script' (in the last 
case the file must be executable).

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


Re: How to package up (all) installed ports

2005-02-17 Thread Danny Pansters
On Friday 18 February 2005 02:17, you wrote:
 #!/bin/sh

 # Shell script to create packages of all the ports installed in the system.
 # Usage: 'sh package-ports.sh'
 # Will create the packages in the current directory.

 PORTS=`pkg_info | awk '{print $1}'` # Filter the description.
 NUM_PORTS=`echo $PORTS | awk 'END {print NR}'`
 BZIP=-j   # Use bzip2 instead of gzip.
 PKGCMD=pkg_create $BZIP -b# Command to create package.

 echo Packaging $NUM_PORTS ports

 # Process one port at time.

 for PORT in $PORTS
 do
 echo Packaging port \$PORT\
 $PKGCMD $PORT
 done

 echo Done

 exit 0

I like it. Thank you!

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


RE: correct routine of updating installed ports?

2004-09-23 Thread Philip Payne
   # cvsup -g -L 2 supfile
   # portsdb -uU
   # pkgdb -F
   # port_version
   # portupgrade -a
 
   And what does make index actually do? Do I need it?

You missed a step between cvsup and portupgrade.

less /usr/ports/UPGRADING 

... and read, to check out what will happen when certain ports are updated.

Looks much the same as I how I do it. I dont do a portversion. You might
want to create a portupgrade log with the -l switch on portupgrade. Then,
after its complete check for failed entries i.e. those marked with ! or
* so you can manually check out the problem

Also, you may want to add a portsclean at the end to remove old distfiles
etc. man portsclean will give all the relevant options.

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


correct routine of updating installed ports?

2004-09-22 Thread Choy Kho Yee
Just want to confirm if this is the correct routine to update the 
installed ports.

 # cvsup -g -L 2 supfile
 # portsdb -uU
 # pkgdb -F
 # port_version
 # portupgrade -a
 And what does make index actually do? Do I need it?
 Thanks for any input.
---
Choy Kho Yee
url: http://dotkoyi.infoseek.ne.jp/
blog: http://dotkoyi.blogspot.com/
There are only 10 types of people in the world, i.e. those who 
understand binary numbers and those who do not.

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


Re: finding out information about installed ports/packages

2004-09-21 Thread Giorgos Keramidas
On 2004-09-22 00:55, KUKKO [EMAIL PROTECTED] wrote:

 I hate to bother you cause I know that you are probably busy with many
 other more complicated issues.  But I have run into this problem.

Hi,
The freebsd-questions list exists exactly for this purpose.  So that people
can ask FreeBSD-related questions.  You are not bothering anyone :-)

Please, try to use a short and to the point subject when posting though.
Otherwise your question might get lost or ignored by people who quickly skim
through hundreds of posts every day.  I've changed the subject now.  Just
noting this for any future posts.

 After installing many of the ports successfully (without errors) I
 can't seem to be able to get them to start in gnome kde etc.  except
 for a few like like abiword.  How can I learn how to start these apps
 or any app once installed? In other words how can I learn the app
 executing commands for ports etc.

The ports add binaries in one or two very well-known places.  These are
/usr/local and /usr/X11R6.  Look at the `bin' and `sbin' subdirectories of
these two catalogs.

A good way to find out exactly the executable files that a port installed in
these directories is to use pkg_info(1) after installing it:

# pkg_info | grep irssi
irssi-0.8.9_2   A modular IRC client with many features
# pkg_info -L irssi-0.8.9_2 | grep bin/
/usr/local/bin/irssi

Regards,
Giorgos

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


make clean all installed ports

2004-06-30 Thread Peter Risdon
I'm sure I saw recently on this list that it's possible to:
#cd /usr/ports
#make clean somethingorother
and clean just installed ports. A straight make clean in the root of the 
ports tree takes rather a long time.

But I can't seem to find the post anywhere. If this isn't the product of 
my feverish imagination, I'd be grateful for a reminder.

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


Re: make clean all installed ports

2004-06-30 Thread epilogue
On Wed, 30 Jun 2004 09:10:15 +0100
Peter Risdon [EMAIL PROTECTED] wrote:

 I'm sure I saw recently on this list that it's possible to:
 
 #cd /usr/ports
 #make clean somethingorother
 
 and clean just installed ports. A straight make clean in the root of the 
 ports tree takes rather a long time.
 
 But I can't seem to find the post anywhere. If this isn't the product of 
 my feverish imagination, I'd be grateful for a reminder.

i seem to recall having seen it in an onlamp article.  you may also have
seen it there.

just in case you're actually considering cleaning-up that way, you can save
yourself a _LOT_ of time by installing the portupgrade suite of tools then
simply...

portsclean -C

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


Re: make clean all installed ports

2004-06-30 Thread Joe Altman
On Wed, Jun 30, 2004 at 09:10:15AM +0100, Peter Risdon wrote:
 I'm sure I saw recently on this list that it's possible to:
 
 #cd /usr/ports
 #make clean somethingorother
 
 and clean just installed ports. A straight make clean in the root of the 
 ports tree takes rather a long time.
 
 But I can't seem to find the post anywhere. If this isn't the product of 
 my feverish imagination, I'd be grateful for a reminder.

Matthew Seaman recently posted this:

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


How to get an overview of the installed ports

2004-03-19 Thread Ronald Hoellwarth
Hello,

I've installed some apps and deinstalled them  again because I didn't 
like them. While installing them other software was installed too but 
I think it wasn't removed when I removed the unwanted programms.

Is there a possibility to get an overview which ports are installed and 
how they are linked? something like this:

appA
needs appB appC
needed by appD appE appF

appB
needs -none-
needed by appA

...

Then I could go through the list and see which programms I have to 
remove in order to get a cleaner system.

greetings from crailsheim, germany
ronald höllwarth



pgp0.pgp
Description: PGP signature


Re: How to get an overview of the installed ports

2004-03-19 Thread Arek Czereszewski
Ronald Hoellwarth wrote:

Hello,

I've installed some apps and deinstalled them  again because I didn't 
like them. While installing them other software was installed too but 
I think it wasn't removed when I removed the unwanted programms.

Is there a possibility to get an overview which ports are installed and 
how they are linked? something like this:

appA
   needs appB appC
   needed by appD appE appF
appB
   needs -none-
   needed by appA
...

Then I could go through the list and see which programms I have to 
remove in order to get a cleaner system.

greetings from crailsheim, germany
ronald hllwarth
 

Try this app pkg_tree from page
http://www.mavetju.org/unix/general.php
Maybe help.



--
Arkadiusz Czereszewski  |  gg: 1349941
arek(at)wup-katowice.pl | jid: [EMAIL PROTECTED]
*NIX is like wigwam - no windows, no gates
and apache inside.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to get an overview of the installed ports

2004-03-19 Thread Peder Blom
On Fri, 19 Mar 2004 09:40:39 +0100
Ronald Hoellwarth [EMAIL PROTECTED] wrote:

 Hello,
 
 I've installed some apps and deinstalled them  again because I didn't 
 like them. While installing them other software was installed too but 
 I think it wasn't removed when I removed the unwanted programms.
 
 Is there a possibility to get an overview which ports are installed
 and how they are linked? something like this:
 
 appA
 needs appB appC
 needed by appD appE appF
 
 appB
 needs -none-
 needed by appA
 


pkg_info -rRa


There is also a GUI program that gives you a convenient tree-view of the
dependencies:

/ports/sysutils/gpkgdep


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


Re: How to get an overview of the installed ports

2004-03-19 Thread Ronald Hoellwarth
On Fri, Mar 19, 2004 at 11:21:34AM +0100, Peder Blom wrote:
  Is there a possibility to get an overview which ports are installed
  and how they are linked?
 
 pkg_info -rRa

Aah. That's what I was after.
Thanks.

greetings from crailsheim, germany
ronald höllwarth



pgp0.pgp
Description: PGP signature


RE: How to get an overview of the installed ports

2004-03-19 Thread Dan MacMillan
pkg_tree is also available in the ports collection at
/usr/ports/sysutils/pkg_tree

-Dan

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Arek Czereszewski
Sent: March 19, 2004 02:47
To: Ronald Hoellwarth
Cc: [EMAIL PROTECTED]
Subject: Re: How to get an overview of the installed ports


Ronald Hoellwarth wrote:

Hello,

I've installed some apps and deinstalled them  again because I didn't
like them. While installing them other software was installed too but
I think it wasn't removed when I removed the unwanted programms.

Is there a possibility to get an overview which ports are installed and
how they are linked? something like this:

appA
needs appB appC
needed by appD appE appF

appB
needs -none-
needed by appA

...

Then I could go through the list and see which programms I have to
remove in order to get a cleaner system.

greetings from crailsheim, germany
ronald hllwarth



Try this app pkg_tree from page
http://www.mavetju.org/unix/general.php

Maybe help.



--
Arkadiusz Czereszewski  |  gg: 1349941
arek(at)wup-katowice.pl | jid: [EMAIL PROTECTED]
*NIX is like wigwam - no windows, no gates
 and apache inside.


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

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


Dependencies of installed ports

2004-01-22 Thread Tom Munro Glass
1) How can I display the dependencies between the ports I have installed on my 
4.9-RELEASE machine? There seem to be some ports in /var/db/pkg that I 
haven't intentionally installed and I would like to get rid of some of them, 
but I don't know if they are used by other ports.

2) I use portinstall to install ports, but if I want to delete a port, is the 
only way to use make deinstall? It would be nice if there was something 
like portdeinstall that would remove the specified port and any ports it 
depends on (providing they are not used elsewhere).

Regards,

Tom Munro Glass

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


Re: Dependencies of installed ports

2004-01-22 Thread Chris Pressey
On Fri, 23 Jan 2004 17:00:05 +1300
Tom Munro Glass [EMAIL PROTECTED] wrote:

 1) How can I display the dependencies between the ports I have
 installed on my 4.9-RELEASE machine? There seem to be some ports in
 /var/db/pkg that I haven't intentionally installed and I would like to
 get rid of some of them, but I don't know if they are used by other
 ports.

Try:

  pkg_info -r name of package as it appears in /var/db/pkg

 2) I use portinstall to install ports, but if I want to delete a port,
 is the only way to use make deinstall? It would be nice if there was
 something like portdeinstall that would remove the specified port and
 any ports it depends on (providing they are not used elsewhere).

pkg_delete can remove the packages created by ports (better than make
deinstall, which can fail after you've updating your ports tree and the
port has been upgraded.)

pkg_delete -r will remove the package and any packages that depend on
it.

But for what you want (remove the package and all packages that it
depends on (that no other package depends on,)) I'm not sure how to do
it with the standard tools.  I find the sysutils/pkg_cutleaves port is
handy for this purpose though, and definately worth a look in your
situation.

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


How can I duplicate a set of installed ports?

2004-01-02 Thread John Mills
Freebies -

I have an installation I'm comfortable with, between those ports I chose 
to install, those I chose _not_ to install, and those I went around and 
added individually. Now I want to install the same set in a number of 
other systems. I know I can get a list of installed options with 
'pkg_info', but I don't know how to make the best use of the list.

The machines have 3.5 diskettes, _just_sufficient_ hard drives, netowrk
interface cards, and no CD-ROMs. They hang on a LAN served with DHCP.

I would like to avoid doing manual selection each time, of course. I would
prefer to do independent passive-FTP installations from a FreeBSD.org
server for each target machine rather than a disk-slice copy because I
wouldn't have to remove the drives from the computers.

What are my options, and your recommendations?

TIA.
 
 - John Mills
   [EMAIL PROTECTED]

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


Re: How can I duplicate a set of installed ports?

2004-01-02 Thread Martin Brecher
John Mills wrote:
[...]
I have an installation I'm comfortable with, between those ports I chose 
to install, those I chose _not_ to install, and those I went around and 
added individually. Now I want to install the same set in a number of 
other systems. 
[...]
The machines have 3.5 diskettes, _just_sufficient_ hard drives, netowrk
interface cards, and no CD-ROMs. They hang on a LAN served with DHCP.
[...]
What are my options, and your recommendations?
Assuming all machines have similar installations of FreeBSD, you could 
just cp -Rp /usr/local to the other machines over the network -- or have 
 it just NFS mounted (no local copy on each machine).
Additionally, you would have to copy missing items from /var/db/pkg to 
the other machines. And possibly diff/merge some files in /etc (some 
ports may need additional user accounts, etc).

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


Re: How can I duplicate a set of installed ports?

2004-01-02 Thread Lowell Gilbert
Martin Brecher [EMAIL PROTECTED] writes:

 John Mills wrote:
 [...]
  I have an installation I'm comfortable with, between those ports I
  chose to install, those I chose _not_ to install, and those I went
  around and added individually. Now I want to install the same set in
  a number of other systems.
 [...]
  The machines have 3.5 diskettes, _just_sufficient_ hard drives, netowrk
  interface cards, and no CD-ROMs. They hang on a LAN served with DHCP.
 [...]
  What are my options, and your recommendations?
 
 Assuming all machines have similar installations of FreeBSD, you could
 just cp -Rp /usr/local to the other machines over the network -- or
 have it just NFS mounted (no local copy on each machine).
 Additionally, you would have to copy missing items from /var/db/pkg to
 the other machines. And possibly diff/merge some files in /etc (some
 ports may need additional user accounts, etc).

And the X11 tree, too...

It would probably be easiest to make packages of the ports, and
install them from a central server.

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area: 
resume/CV at http://be-well.ilk.org:8088/~lowell/resume/
username/password public
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Installed ports

2003-11-25 Thread Jean-Baptiste Quenot
* Valerian Galeru:

 Pls tell me  where are all the installed ports? After  i installed the
 port, where i can find the bin file for the port?

Information about  packages is kept in  /var/db/pkg.  To have a  list of
all installed packages, see pkg_version(1).

Cheers,
-- 
Jean-Baptiste Quenot
http://caraldi.com/jbq/


pgp0.pgp
Description: PGP signature


Re: Installed ports

2003-11-24 Thread Jean-Baptiste Quenot
* Valerian Galeru:

 Pls tell me  where are all the installed ports? After  i installed the
 port, where i can find the bin file for the port?

Information about  packages is kept in  /var/db/pkg.  To have a  list of
all installed packages, see pkg_version(1).

Cheers,
-- 
Jean-Baptiste Quenot
http://caraldi.com/jbq/


pgp0.pgp
Description: PGP signature


Installed ports

2003-11-21 Thread Valerian Galeru
Pls tell me where are all the installed ports? After i installed the port, where i can 
find the bin file for the port?


-
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Installed ports

2003-11-21 Thread Dan Nelson
In the last episode (Nov 21), Valerian Galeru said:
 Pls tell me where are all the installed ports? After i installed the port, where i 
 can find the bin file for the port?

Try /usr/local/bin or /usr/X11R6/bin.

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


Re: Installed ports

2003-11-21 Thread Rus Foster
On Fri, 21 Nov 2003, Valerian Galeru wrote:

 Pls tell me where are all the installed ports? After i installed the
 port, where i can find the bin file for the port?


Ports install in to /usr/local

To see the packages do pkg_info

To see where an package is installed do

pkg_info -L package name

e.g.

bash-2.05b# pkg_info -L imake-4.3.0 | head -10
Information for imake-4.3.0:

Files:
/usr/X11R6/man/man1/ccmakedep.1.gz
/usr/X11R6/man/man1/cleanlinks.1.gz
/usr/X11R6/man/man1/gccmakedep.1.gz
/usr/X11R6/man/man1/imake.1.gz
/usr/X11R6/man/man1/lndir.1.gz
/usr/X11R6/man/man1/makedepend.1.gz
/usr/X11R6/man/man1/makeg.1.gz

Rgds

Rus
-- 
w: http://www.jvps.com  | Virtual Dedicated Servers from $15/mo
e: [EMAIL PROTECTED]| Donations made to Debian, FreeBSD
t: +44 7919 373537  | and Slackware
t: 1-888-327-6330   | email: [EMAIL PROTECTED]


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


Pkgdb corrupted : doesn't recognized installed ports

2003-06-11 Thread Viny
Hi

As I was upgrading my ports, my system crashed (have to find out why,
but this is another problem) and rebooted. I was using portupgrade and it
seems to have messed up the port/pkg db because now, when I run pkgdb -F,
it tells me about stale depencies like 'x11-toolkits/vte', 'mozilla-gtk2',
'yelp' and so on, though these are already installed. Of course, as it
considers them not installed, it doesn't show them as a possibility, I can't
deinstall them using pkg_deinstall...

Any way to fix this other than reinstalling the missing ports by
hand (cd /usr/ports/[missing port]  make install clean) ? And because some
of these ports have been updated in the port tree (e.g. vte), I'm afraid to
mess up the db even more (not sure reinstalling the new version of vte over
the old one would do any good).

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


Re: Pkgdb corrupted : doesn't recognized installed ports

2003-06-11 Thread Viny
On Wed, Jun 11, 2003 at 05:43:22PM -0400 or thereabouts, Robert Huff may have written :
   make a copy of the db
   delete the db
   rebuild the db from scratch
 
   The last may take a while, depending on how fast your machine
 is, but it may save you a lot of grief.
   Then run pkg_version (or equivalent) and update as desired.

Thanks for the answer.

What exactly do you call the db ? /var/db/pkg/pkgdb.db ? or the whole
directory /var/db/pkg ?
Upon examination it seems that some files disappeared with the crash.
Actually, some +CONTENTS files to be more precise. Which explains I can't do
anything with these ports.
If there was a way to build /var/db/pkg from scratch I'd be very
happy =) Else, I plan to retrieve the cvs ports files matching the versions of
the programs installed on my computer and reinstall them.

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


Re: Pkgdb corrupted : doesn't recognized installed ports

2003-06-11 Thread Andreas Kohn
Am Thu, 2003-06-12 um 00.02 schrieb Viny:
 On Wed, Jun 11, 2003 at 05:43:22PM -0400 or thereabouts, Robert Huff may have 
 written :
  make a copy of the db
  delete the db
  rebuild the db from scratch
  
  The last may take a while, depending on how fast your machine
  is, but it may save you a lot of grief.
  Then run pkg_version (or equivalent) and update as desired.
 
   Thanks for the answer.
 
   What exactly do you call the db ? /var/db/pkg/pkgdb.db ? or the whole
 directory /var/db/pkg ?
   Upon examination it seems that some files disappeared with the crash.
 Actually, some +CONTENTS files to be more precise. Which explains I can't do
 anything with these ports.
   If there was a way to build /var/db/pkg from scratch I'd be very
 happy =) Else, I plan to retrieve the cvs ports files matching the versions of
 the programs installed on my computer and reinstall them.

   Viny
Hello, 

I had a similar problem (crash, unexpected softupdate errors in /var,
and a bombed /var/db/pkg). For me it was possible to extract the missing
files from /var/lost+found, because although the directory names in the
first level have been trashed, the contents were still there. 

Depending on the amount of missing ports, and the contents of
lost+found, you might be able to move the missing files to their correct
position. (I used a perl script to unconditionally do that, since
_nothing_ was in /var/db/pkg =) )

-- 
Andreas Kohn [EMAIL PROTECTED]


signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


Re: Pkgdb corrupted : doesn't recognized installed ports

2003-06-11 Thread Viny
On Thu, Jun 12, 2003 at 12:32:22AM +0200 or thereabouts, Andreas Kohn may have written 
:
 Depending on the amount of missing ports, and the contents of
 lost+found, you might be able to move the missing files to their correct
 position. (I used a perl script to unconditionally do that, since
 _nothing_ was in /var/db/pkg =) )

Well... The only lost+found that I have is in /home... So it seems I
have to find another way =) I've just checked : only three of the busted ports
have been updated. So, using cvsweb, retrieving {Makefile,distinfo,pkg-plist}
for these three ports and rebuilding all the busted ports (8 altogether), I
will slowly but surely reach my goal... Well... I hope so ;)
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Listing installed ports without any ports dependent on it

2003-06-03 Thread Adam
What I need to do is this:

For each installed port that has NO other installed ports dependent on
it, output the full name of the port

In other words, I want a script to generate the list of ports that can
be deinstalled without forcing (-f).

A few months ago a guy posted a python script to this mailing list that
did this, but I've since lost the script and it's too long ago for any
of the online archives.

If you're the nice guy that shared this script before, would you mind
sharing it again? Or, does someone else have a script to do this? I
remember it requiring a bit of cleverness to get it to work nicely.

Thanks,
-- 
Adam [EMAIL PROTECTED]

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


Re: Listing installed ports without any ports dependent on it

2003-06-03 Thread parv
in message [EMAIL PROTECTED], wrote Adam thusly...

 For each installed port that has NO other installed ports
 dependent on it, output the full name of the port
 
 In other words, I want a script to generate the list of ports that
 can be deinstalled without forcing (-f).

What you need is to check if '+REQUIRED_BY' file exists.  (For finer
control, also check if it is empty or not.)  If file does not exist
(or is empty), then there is no registered dependency.

  #!/bin/sh
  pkgdb=/var/db/pkg

  for p in $pkgdb/*
  do
[ -f $p/+REQUIRED_BY ] || { echo $p | sed -e s!^$pkgdb/!! ; }
  done


  - Parv

-- 
A programmer, budding Unix system administrator, and amateur photographer
ISO employment.  Details...

  http://www103.pair.com/parv/work/

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


Re: Listing installed ports without any ports dependent on it

2003-06-03 Thread kitsune
cd /var/db/pkg/
ls

On 02 Jun 2003 17:52:43 -0400
Adam [EMAIL PROTECTED] wrote:

 What I need to do is this:
 
 For each installed port that has NO other installed ports dependent on
 it, output the full name of the port
 
 In other words, I want a script to generate the list of ports that can
 be deinstalled without forcing (-f).
 
 A few months ago a guy posted a python script to this mailing list that
 did this, but I've since lost the script and it's too long ago for any
 of the online archives.
 
 If you're the nice guy that shared this script before, would you mind
 sharing it again? Or, does someone else have a script to do this? I
 remember it requiring a bit of cleverness to get it to work nicely.
 
 Thanks,
 -- 
 Adam [EMAIL PROTECTED]
 
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Listing installed ports without any ports dependent on it

2003-06-03 Thread Adam
On Tue, 2003-06-03 at 21:26, kitsune wrote:
 cd /var/db/pkg/
 ls

Thanks, but you obviously didn't read my post. 

-- 
Adam [EMAIL PROTECTED]

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


Re: Listing installed ports without any ports dependent on it

2003-06-03 Thread Adam
On Mon, 2003-06-02 at 20:16, parv wrote:
 What you need is to check if '+REQUIRED_BY' file exists.  (For finer
 control, also check if it is empty or not.)  If file does not exist
 (or is empty), then there is no registered dependency.
 
   #!/bin/sh
   pkgdb=/var/db/pkg
 
   for p in $pkgdb/*
   do
 [ -f $p/+REQUIRED_BY ] || { echo $p | sed -e s!^$pkgdb/!! ; }
   done

This almost works, but not quite as elegant as the method I used before.
I wish like hell I still had a copy of that python script someone on
this list gave me. That script should be installed as part of the
portupgrade suite, imo.

Thanks,
-- 
Adam [EMAIL PROTECTED]

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


Re: Listing installed ports without any ports dependent on it

2003-06-03 Thread Adam
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! 

Here's how I run it:
echo Installed before:
pkg_info |wc -l
sleep 3
/home/eskimo/bin/pkg_nodeps.sh |less
echo Installed after:
pkg_info |wc -l

The basic idea is to thumb through the list and spot the ports that are
no longer needed, then copy  paste the port name to a seperate terminal
and pkg_delete it. This is a great way to efficiently remove unneeded
ports.

Thanks Marcus!

-- 
Adam [EMAIL PROTECTED]

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


Re: Listing installed ports without any ports dependent on it

2003-06-03 Thread parv
in message [EMAIL PROTECTED],
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/

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


Re: How to list installed ports that have no dependant ports

2003-04-05 Thread Adam
On Fri, 2003-04-04 at 03:34, Erik Trulsson wrote:
 Look at the output from 'pkg_info -a -R'.

Yes, this was part of one of my ideas, but it's not really what I'm
after .. I want to find a nice way to show ONLY installed ports that
have no other ports dependant on them .. Your suggestion shows ALL
installed ports and what is required by them .. I've not found any
elegant way to parse out the information that I am desiring ..

-- 
Adam [EMAIL PROTECTED]

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


Re: How to list installed ports that have no dependant ports

2003-04-05 Thread Adam
On Fri, 2003-04-04 at 13:20, Mike Meyer wrote:
 Since you want to delete them, why don't you just use pkg_delete on
 them. If they something depends on them, they won't be deleted.

I do use pkg_delete, but the idea here is to effectively FIND the ports
that have no ports dependent on them .. I've got 500+ installed ports to
go through here .. Trying pkg_delete on all of them would take too long
.. I need to narrow my search space considerably in order to do this
effectively ..

-- 
Adam [EMAIL PROTECTED]

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


Re: How to list installed ports that have no dependant ports

2003-04-05 Thread Mike Meyer
In [EMAIL PROTECTED], Adam [EMAIL PROTECTED] typed:
 On Fri, 2003-04-04 at 13:20, Mike Meyer wrote:
  Since you want to delete them, why don't you just use pkg_delete on
  them. If they something depends on them, they won't be deleted.
 
 I do use pkg_delete, but the idea here is to effectively FIND the ports
 that have no ports dependent on them .. I've got 500+ installed ports to
 go through here .. Trying pkg_delete on all of them would take too long
 .. I need to narrow my search space considerably in order to do this
 effectively ..

Here's a simple python script for you. You'll need python 2.2 if you
haven't got it already. Feed it the output of pkg_info -a -R on
standard in, and it'll output the package names of all packages that
aren't required by other packages.

Don't forget that you may have packages which are only required by
packages that you don't want, so you need to iterate over the deletion
process multiple times.

mike




find-unrequired-ports.py
Description: Python program to find ports with no dependents.

-- 
Mike Meyer [EMAIL PROTECTED]  http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to list installed ports that have no dependant ports

2003-04-05 Thread Adam
On Sat, 2003-04-05 at 17:59, Mike Meyer wrote:

 Here's a simple python script for you. You'll need python 2.2 if you
 haven't got it already. Feed it the output of pkg_info -a -R on
 standard in, and it'll output the package names of all packages that
 aren't required by other packages.
 
 Don't forget that you may have packages which are only required by
 packages that you don't want, so you need to iterate over the deletion
 process multiple times.

Thanks, the script works great .. I'll be making heavy use of this .. ;p

-- 
Adam [EMAIL PROTECTED]

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


Re: How to list installed ports that have no dependant ports

2003-04-04 Thread Erik Trulsson
On Fri, Apr 04, 2003 at 01:36:20AM -0500, Adam wrote:
 (/usr/ports) - ([EMAIL PROTECTED]) - (01:31:37)
 -$ pkg_info |wc -l
  488
 
 As you can see, I need to clean up my system quite a bit. I've got a ton
 of things installed, most of which were installed as dependencies for
 ports that have since been uninstalled.
 
 So, what I'd like to do is list all the ports installed on my box that
 have nothing dependant on them. In this way, I could start removing
 things that I don't need anymore. 
 
 Is there any clever way to do this? I've toyed around with a few ideas,
 but haven't been able to come up with anything that works nicely.

Look at the output from 'pkg_info -a -R'.


-- 
Insert your favourite quote here.
Erik Trulsson
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How to list installed ports that have no dependant ports

2003-04-04 Thread Mike Meyer
In [EMAIL PROTECTED], Adam [EMAIL PROTECTED] typed:
 So, what I'd like to do is list all the ports installed on my box that
 have nothing dependant on them. In this way, I could start removing
 things that I don't need anymore. 
 
 Is there any clever way to do this? I've toyed around with a few ideas,
 but haven't been able to come up with anything that works nicely.

Since you want to delete them, why don't you just use pkg_delete on
them. If they something depends on them, they won't be deleted.

So the recommended methodology is:

Put a sorted list of ports you know you want to keep in keeps.

Generate a list of things to try and delete by

(cd /var/db/pkg; ls | sort) | comm -23 - keeps | xargs pkg_delete

and keep doing that as long as things are vanishing from /var/db/pkg.

mike
-- 
Mike Meyer [EMAIL PROTECTED]  http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


How to list installed ports that have no dependant ports

2003-04-03 Thread Adam
(/usr/ports) - ([EMAIL PROTECTED]) - (01:31:37)
-$ pkg_info |wc -l
 488

As you can see, I need to clean up my system quite a bit. I've got a ton
of things installed, most of which were installed as dependencies for
ports that have since been uninstalled.

So, what I'd like to do is list all the ports installed on my box that
have nothing dependant on them. In this way, I could start removing
things that I don't need anymore. 

Is there any clever way to do this? I've toyed around with a few ideas,
but haven't been able to come up with anything that works nicely.

-- 
Adam [EMAIL PROTECTED]

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


Re: Portupgrade can't find installed ports.

2003-01-31 Thread Daniel Bye
On Thu, Jan 30, 2003 at 10:35:39AM -0800, Kris Kennaway wrote:
 On Thu, Jan 30, 2003 at 04:12:14PM +, Daniel Bye wrote:
  Hi all,
  
  I am having problems with portupgrade and related tools on 5.0-RELEASE
  on Sparc64.  I can't find anything relevant in the archives, nor on 
  Google, so I turn to you ;-)
 
 This question has been asked a couple of times on freebsd-sparc.
 cvsup and upgrade your ruby port to 1.8 (e.g. by deinstalling it and
 portupgrade and then reinstalling portupgrade).

Thanks, Kris.  I tried that again, but still no go.  I'll go hang out
on -sparc64 for a while, see if there's anything else I'm missing!

Dan

-- 
Daniel Bye

PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc
PGP Key fingerprint: 3D73 AF47 D448 C5CA 88B4 0DCF 849C 1C33 3C48 2CDC
 _
  ASCII ribbon campaign ( )
 - against HTML, vCards and  X
- proprietary attachments in e-mail / \

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Portupgrade can't find installed ports.

2003-01-30 Thread Daniel Bye
Hi all,

I am having problems with portupgrade and related tools on 5.0-RELEASE
on Sparc64.  I can't find anything relevant in the archives, nor on 
Google, so I turn to you ;-)

When invoked in the usual manner, portinstall cannot search the ports
directory structure (or so it seems to me):

[osiris: root: /usr/ports]# portinstall -R exim
** No such installed package nor such port called 'exim' is found.


But, if I supply the subdir name, portinstall finds the port:

[osiris: root: /usr/ports]# portinstall -R mail/exim
---  Installing 'exim-4.12_1' from a port (mail/exim)
---  Building '/usr/ports/mail/exim'
===  Cleaning for perl-5.6.1_11
===  Cleaning for exim-4.12_1
...


portupgrade has problems, too, apparently reading /var/db/pkg:

[osiris: root: ~]# portupgrade -a
** No such package '*' is installed.


I have the latest versions of Ruby and Portupgrade, and the pkgtools.conf
is unaltered.

I don't have any problems with the same versions of Ruby and Portupgrade
on any of my i386 boxes.

I seem to recall similar behaviour on 4.X/i386 a while ago, but didn't
pursue it.  Anyone else see anything similar on either i386 or Sparc64?
Any ideas how to correct it?  I have had a quick look through the
script files, but it's all Greek to me...

As always, any insights, thoughts or pointers very gratefully accepted.
Flames too, if this has been answered recently and I just missed it...

Cheers,

Dan

-- 
Daniel Bye

PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc
PGP Key fingerprint: 3D73 AF47 D448 C5CA 88B4 0DCF 849C 1C33 3C48 2CDC
 _
  ASCII ribbon campaign ( )
 - against HTML, vCards and  X
- proprietary attachments in e-mail / \

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: Portupgrade can't find installed ports.

2003-01-30 Thread Kris Kennaway
On Thu, Jan 30, 2003 at 04:12:14PM +, Daniel Bye wrote:
 Hi all,
 
 I am having problems with portupgrade and related tools on 5.0-RELEASE
 on Sparc64.  I can't find anything relevant in the archives, nor on 
 Google, so I turn to you ;-)

This question has been asked a couple of times on freebsd-sparc.
cvsup and upgrade your ruby port to 1.8 (e.g. by deinstalling it and
portupgrade and then reinstalling portupgrade).

Kris



msg17442/pgp0.pgp
Description: PGP signature


Re: reinstall all installed ports

2002-11-02 Thread Lefteris Tsintjelis
Hi,

And how would u deal with new versions of the already installed ports
in order to maintain good binary compatibility backwards and forwards?

Thank you.

Kris Kennaway wrote:
 
 On Fri, Nov 01, 2002 at 05:00:03PM +0200, Lefteris Tsintjelis wrote:
  Hi,
 
Is there en easy way to remove, rebuild, and reinstall or force the
  reinstallation of all already installed ports if broken dependencies are
  suspected?
 
 Again, portupgrade -af.
 
 Kris


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: reinstall all installed ports

2002-11-02 Thread Kris Kennaway
On Sat, Nov 02, 2002 at 04:13:05PM +0200, Lefteris Tsintjelis wrote:
 Hi,
 
   And how would u deal with new versions of the already installed ports
 in order to maintain good binary compatibility backwards and forwards?

I don't understand the question.

Kris



msg07430/pgp0.pgp
Description: PGP signature


Re: reinstall all installed ports

2002-11-02 Thread Lefteris Tsintjelis
Hi,
I mean that I have just finished reinstalling all ports hoping it would
solve some broken port/library dependencies I was suspecting using
porsupgrade -afp. Actually, it did a good job and solved all port
dependencies problems I had except 1. Some mozilla libaries remain
broken. I am using 4.7-STABLE #0: Sun Nov 3 and here is some of the
output using libchk:

Unresolvable link(s) found in:
/usr/X11R6/lib/mozilla/plugins/libnullplugin.so
libxpcom.so
Unresolvable link(s) found in:
/usr/X11R6/lib/mozilla/components/libmsgsmime.so
libmsgbaseutil.so
libmozjs.so
libxpcom.so
Unresolvable link(s) found in:
/usr/X11R6/lib/mozilla/components/libmsgmdn.so
libmsgbaseutil.so
libmozjs.so
libxpcom.so
Unresolvable link(s) found in:
/usr/X11R6/lib/mozilla/components/libabsyncsvc.so
libmsgbaseutil.so
libmozjs.so
libxpcom.so
...

Kris Kennaway wrote:
 
 On Sat, Nov 02, 2002 at 04:13:05PM +0200, Lefteris Tsintjelis wrote:
  Hi,
 
And how would u deal with new versions of the already installed ports
  in order to maintain good binary compatibility backwards and forwards?
 
 I don't understand the question.
 
 Kris


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: reinstall all installed ports

2002-11-02 Thread Kris Kennaway
On Sun, Nov 03, 2002 at 02:43:05AM +0200, Lefteris Tsintjelis wrote:
 Hi,
   I mean that I have just finished reinstalling all ports hoping it would
 solve some broken port/library dependencies I was suspecting using
 porsupgrade -afp. Actually, it did a good job and solved all port
 dependencies problems I had except 1. Some mozilla libaries remain
 broken. I am using 4.7-STABLE #0: Sun Nov 3 and here is some of the
 output using libchk:
 
 Unresolvable link(s) found in:
 /usr/X11R6/lib/mozilla/plugins/libnullplugin.so
 libxpcom.so

Is this actually causing mozilla to fail?  It may just be some slight
messyness in mozilla.

Kris



msg07475/pgp0.pgp
Description: PGP signature


Re: reinstall all installed ports

2002-11-02 Thread Lefteris Tsintjelis
I am not using X very often so I wouldn't really now. However, I will
give it an extensive try the next few days and see what happens. It will
probably be for me hard to tell why is failing anyway. I always had
problems with it.

Lefteris

Kris Kennaway wrote:
 
 On Sun, Nov 03, 2002 at 02:43:05AM +0200, Lefteris Tsintjelis wrote:
  Hi,
I mean that I have just finished reinstalling all ports hoping it would
  solve some broken port/library dependencies I was suspecting using
  porsupgrade -afp. Actually, it did a good job and solved all port
  dependencies problems I had except 1. Some mozilla libaries remain
  broken. I am using 4.7-STABLE #0: Sun Nov 3 and here is some of the
  output using libchk:
 
  Unresolvable link(s) found in:
  /usr/X11R6/lib/mozilla/plugins/libnullplugin.so
  libxpcom.so
 
 Is this actually causing mozilla to fail?  It may just be some slight
 messyness in mozilla.
 
 Kris


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: reinstall all installed ports

2002-11-01 Thread DaleCo Help Desk

- Original Message - 
From: Andrew Thomson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 29, 2002 9:33 PM
Subject: Re: reinstall all installed ports


 My portupgrade just finished fine.. however the hole point of this
 excerise was to try and fix this problem.
 
 [ root @ redback :/root# ] ncftp3  
 /usr/libexec/ld-elf.so.1: ncftp3: Undefined symbol InitWinsock
 

myguess
ncftp3 was configured with some option that tried
to build it with some dependency which was not available.
/myguess

Did you build it from ports (ages ago)?

You might try uninstalling/make clean and starting
over if it's not too critical.  If it's a high volume ftp
server, I'd make a list of options and choose the one
that balances ease with servicability/availability.

My 2 #162;  (and worth less than that, I expect)

Kevin Kinsey


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: reinstall all installed ports

2002-11-01 Thread Lefteris Tsintjelis
Hi,

Is there en easy way to remove, rebuild, and reinstall or force the
reinstallation of all already installed ports if broken dependencies are
suspected?

DaleCo Help Desk wrote:
 
 - Original Message -
 From: Andrew Thomson [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, October 29, 2002 9:33 PM
 Subject: Re: reinstall all installed ports
 
  My portupgrade just finished fine.. however the hole point of this
  excerise was to try and fix this problem.
 
  [ root @ redback :/root# ] ncftp3
  /usr/libexec/ld-elf.so.1: ncftp3: Undefined symbol InitWinsock
 
 
 myguess
 ncftp3 was configured with some option that tried
 to build it with some dependency which was not available.
 /myguess
 
 Did you build it from ports (ages ago)?
 
 You might try uninstalling/make clean and starting
 over if it's not too critical.  If it's a high volume ftp
 server, I'd make a list of options and choose the one
 that balances ease with servicability/availability.
 
 My 2 #162;  (and worth less than that, I expect)
 
 Kevin Kinsey


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: reinstall all installed ports

2002-11-01 Thread Kent Stewart


Kris Kennaway wrote:

On Wed, Oct 30, 2002 at 10:18:47AM +1100, Andrew Thomson wrote:


I just need to reinstall all my ports.. only 67 so I'll survive.

However I'm just wondering what the best command would be.

Given I'm doing all of them, I'm just curious if I need to worry about
dependencies and reinstall in order type thing..or if I can just
reinstall each package in any order..



If you do them out of order the dependency information will be screwed
up.  It's best to let portupgrade do it for you all at once and in order.



Is portupgrade -af my best bet?



That's what I use.


I tried this and learned something in the process. I actually used 
-afp so that I had packages that I could use to upgrade my slow 
machines using -afP.

There are some ports that you probably need to -x such as 
cvsup-mirror. You could probably just glob 'cvsup*'. Upgrading 
cvsup-mirror required manual intervention and the process of checking 
ownership on my ncvs directory seemed like it added an hour to the 
upgrade :). I also had to redo texmf.cnf on all of my machines.

Kent

--
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Re: reinstall all installed ports

2002-11-01 Thread Kris Kennaway
On Fri, Nov 01, 2002 at 10:10:49AM -0800, Kent Stewart wrote:

 There are some ports that you probably need to -x such as 
 cvsup-mirror. You could probably just glob 'cvsup*'. Upgrading 
 cvsup-mirror required manual intervention and the process of checking 
 ownership on my ncvs directory seemed like it added an hour to the 
 upgrade :). I also had to redo texmf.cnf on all of my machines.

You can also set the BATCH variable to skip building of interactive
ports (those that require user input to build).

Kris



msg07370/pgp0.pgp
Description: PGP signature


Re: reinstall all installed ports

2002-11-01 Thread Kris Kennaway
On Fri, Nov 01, 2002 at 05:00:03PM +0200, Lefteris Tsintjelis wrote:
 Hi,
 
   Is there en easy way to remove, rebuild, and reinstall or force the
 reinstallation of all already installed ports if broken dependencies are
 suspected?

Again, portupgrade -af.

Kris

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



  1   2   >