Page 1 of 1

FreeBSD Update-Tools Script Root Service.

Posted: 2019-02-10 17:57
by Proteus
Hallo,

in letzter Zeit häufiger aufgefallen das es manchmal zu Problem beim Update mit folgenden Programmen gibt.

Code: Select all

 ! devel/py-setuptools (py36-setuptools-40.6.3)  (install error)
        * dns/py-py3dns (py36-py3dns-3.2.0)
        * mail/py-authres (py36-authres-1.1.1)
        * mail/py-pyspf (py36-pyspf-2.0.12_4)
        * mail/postfix-policyd-spf-python (py36-postfix-policyd-spf-python-2.0.2)
Habe dann py-setuptools dann händisch deinstalliert und das update-ports nochmals angeworfen. Erst dann ist das Update durchgelaufen. Wollte es nur mal als Feed abgegeben haben.

Re: FreeBSD Update-Tools Script Root Service.

Posted: 2019-02-11 18:38
by Joe User
Hast Du die aktuelle Script-Fassung im Einsatz?
Hast Du immernoch einen Mix aus Ports und Packages?

Re: FreeBSD Update-Tools Script Root Service.

Posted: 2019-02-12 15:57
by Proteus
Joe User wrote: 2019-02-11 18:38 Hast Du die aktuelle Script-Fassung im Einsatz?
Ja.

Code: Select all

#!/bin/sh
portsnap fetch update
printf "\v================================================================================\v\n"
pkg updating -d `date -r /usr/ports/UPDATING -v-3m "+%Y%m%d"`
printf "\v================================================================================\v\n"
read -p "Update ports now? [y/N] " REPLY

if [ "x$REPLY" != "xy" ]
then
  exit 0
fi

echo "#!/bin/sh" > /tmp/update-ports
portversion -c -C "-f -r" >> /tmp/update-ports
chmod 0755 /tmp/update-ports
/bin/sh /tmp/update-ports
rm -f /tmp/update-ports
portsclean -CDDL
Nein. Gar nicht mehr.
Hast Du immernoch einen Mix aus Ports und Packages?
Kann es vielleicht sein wenn es einen neuen Kernel gibt, in meinem Fall ein 12-0-RELEASE-p3, dass es dann zu Problemen kommen könnte?


Oha, ich sehe das sich da was geändert hat!

Code: Select all

#!/bin/sh

portsnap fetch update

printf "\v================================================================================\v\n"

pkg updating -d `date -u -v-3m "+%Y%m%d"`

printf "\v================================================================================\v\n"

read -p "Update ports now? [y/N] " REPLY

if [ "x$REPLY" != "xy" ]
then
  exit 0
fi

pkg check -Ba -da -sa -ra
portsdb -Fu
portmaster --no-confirm --no-term-title --index-first -d -w -a -y
portmaster --no-confirm --no-term-title --index-first --clean-distfiles -y
portmaster --no-confirm --no-term-title --index-first --clean-packages -y
portmaster --no-confirm --no-term-title --index-first --check-depends -y
portmaster --no-confirm --no-term-title --check-port-dbdir -y
portsclean -CDDL
Ich denke ich muss wieder öfter reinschauen! ;)