Re: Reinstall to upgrade

2020-11-29 Thread Stuart Henderson
On 2020-11-28, Gregory Edigarov wrote: > #!/bin/sh > rm -rf /usr/local/*  /var/db/pkg/* /var/db/pkg/.* /etc/rc.d/*_daemon There are only 3 packages with /etc/rc.d/*_daemon files.. also you aren't putting /usr/local/lib/X11/app-defaults back how it should be, and you miss creating the directory

Re: Reinstall to upgrade

2020-11-29 Thread Eric Furman
On Sat, Nov 28, 2020, at 9:40 AM, Gregory Edigarov wrote: > > > On 11/25/20 3:26 PM, Manuel Giraud wrote: > > Hi, > > > > I'd like to upgrade (on -current) and, in the process, remove some cruft > > accumulated over the years. I usually do sysupgrade and sysclean for > > system. > > > > But for

Re: Reinstall to upgrade

2020-11-28 Thread Gregory Edigarov
On 11/25/20 3:26 PM, Manuel Giraud wrote: > Hi, > > I'd like to upgrade (on -current) and, in the process, remove some cruft > accumulated over the years. I usually do sysupgrade and sysclean for > system. > > But for packages, I think I would be better to reinstall everything > since

Re: Reinstall to upgrade

2020-11-27 Thread Chris Bennett
On Wed, Nov 25, 2020 at 10:10:03PM -, Stuart Henderson wrote: > > It's not right. Use pkg_delete -cX first. There are package files in > > many other places that need to go away. > > Be very careful with -c! It may remove configuration files that you > actually want to keep. > You're right.

Re: Reinstall to upgrade

2020-11-26 Thread Alexander Hall
On November 26, 2020 10:23:33 AM GMT+01:00, Stuart Henderson wrote: >On 2020/11/25 23:56, Alexander Hall wrote: >> >> >> On November 25, 2020 11:09:02 PM GMT+01:00, Stuart Henderson > wrote: >> >On 2020-11-25, Manuel Giraud wrote: >> >> I have one (somewhat) related question left: is

Re: Reinstall to upgrade

2020-11-26 Thread Stuart Henderson
On 2020/11/25 23:56, Alexander Hall wrote: > > > On November 25, 2020 11:09:02 PM GMT+01:00, Stuart Henderson > wrote: > >On 2020-11-25, Manuel Giraud wrote: > >> I have one (somewhat) related question left: is possible to capture > >the > >> output of pkg_delete -an in a file? I tried the

Re: Reinstall to upgrade

2020-11-26 Thread Manuel Giraud
Stuart Henderson writes: [...] > What you need is: > > $ pkg_delete -an 2>&1 > /tmp/foo > > - redirect stderr to stdout, then redirect stdout (which now includes > stderr) to /tmp/foo. This does not really work. There is some information left but not the list of unused

Re: Reinstall to upgrade

2020-11-25 Thread Navan Carson
> On Nov 25, 2020, at 2:15 PM, Manuel Giraud wrote: > > I have one (somewhat) related question left: is possible to capture the > output of pkg_delete -an in a file? I tried the following (without > luck): > $ pkg_delete -an > /tmp/foo > $ pkg_delete -an > /tmp/foo 2>&1

Re: Reinstall to upgrade

2020-11-25 Thread Alexander Hall
On November 25, 2020 11:09:02 PM GMT+01:00, Stuart Henderson wrote: >On 2020-11-25, Manuel Giraud wrote: >> I have one (somewhat) related question left: is possible to capture >the >> output of pkg_delete -an in a file? I tried the following (without >> luck): >>$ pkg_delete -an

Re: Reinstall to upgrade

2020-11-25 Thread Stuart Henderson
On 2020-11-25, Chris Bennett wrote: > On Wed, Nov 25, 2020 at 02:26:42PM +0100, Manuel Giraud wrote: >> Hi, >> >> I'd like to upgrade (on -current) and, in the process, remove some cruft >> accumulated over the years. I usually do sysupgrade and sysclean for >> system. >> >> But for packages, I

Re: Reinstall to upgrade

2020-11-25 Thread Stuart Henderson
On 2020-11-25, Manuel Giraud wrote: > I have one (somewhat) related question left: is possible to capture the > output of pkg_delete -an in a file? I tried the following (without > luck): >$ pkg_delete -an > /tmp/foo Here you redirect stdout from the process to /tmp/foo >

Re: Reinstall to upgrade

2020-11-25 Thread Manuel Giraud
Chris Bennett writes: [...] > Sometimes you just have to do tedious. upgrade vs install does not give > you the same system. I almost never do a fresh install, but every once > in a while, it's a good choice. > Hope this is helpful. Others may give different or better advice. > sysupgrade is a

Re: Reinstall to upgrade

2020-11-25 Thread Chris Bennett
On Wed, Nov 25, 2020 at 02:26:42PM +0100, Manuel Giraud wrote: > Hi, > > I'd like to upgrade (on -current) and, in the process, remove some cruft > accumulated over the years. I usually do sysupgrade and sysclean for > system. > > But for packages, I think I would be better to reinstall

Re: Reinstall to upgrade

2020-11-25 Thread Manuel Giraud
Sebastien Marie writes: > looks at the output of: > # pkg_delete -a -n That was quick! Thanks to both of you. -- Manuel Giraud

Re: Reinstall to upgrade

2020-11-25 Thread Sebastien Marie
On Wed, Nov 25, 2020 at 02:26:42PM +0100, Manuel Giraud wrote: > Hi, > > I'd like to upgrade (on -current) and, in the process, remove some cruft > accumulated over the years. I usually do sysupgrade and sysclean for > system. > > But for packages, I think I would be better to reinstall

Re: Reinstall to upgrade

2020-11-25 Thread Navan Carson
> On Nov 25, 2020, at 6:29 AM, Manuel Giraud wrote: > > I think I could do the following but I don't know if it is safe: >- sysupgrade (+ sysclean) >- pkg_info -mz > mypkg >- umount /usr/local >- newfs partition_of_usr_local >- mount /usr/local >

Reinstall to upgrade

2020-11-25 Thread Manuel Giraud
Hi, I'd like to upgrade (on -current) and, in the process, remove some cruft accumulated over the years. I usually do sysupgrade and sysclean for system. But for packages, I think I would be better to reinstall everything since "pkg_check -F" does not seems to complain and I can see I have, for