Re: Remove a port without removing files

2021-10-06 Thread raf
On Wed, Oct 06, 2021 at 11:53:05AM +1100, raf wrote: > On Tue, Oct 05, 2021 at 07:03:30PM +0200, Per olof Ljungmark > wrote: > > > As the subject says, I need to remove a port so pkg etc does not care about > > it, but keeping all the ports files intact. > > > > Thanks, > > Per > > Something

Re: Remove a port without removing files

2021-10-06 Thread Eugene Grosbein
06.10.2021 14:50, Tatsuki Makino wrote: > Isn't rm /var/db/pkg/local.sqlite the fastest way? It would destroy the whole database, not just single port record.

Re: Remove a port without removing files

2021-10-06 Thread Tatsuki Makino
Isn't rm /var/db/pkg/local.sqlite the fastest way?

Re: Remove a port without removing files

2021-10-06 Thread Baptiste Daroussin
On Tue, Oct 05, 2021 at 07:03:30PM +0200, Per olof Ljungmark wrote: > As the subject says, I need to remove a port so pkg etc does not care about > it, but keeping all the ports files intact. > > Thanks, > Per > Install it with pkg, then echo 'delete from packages where name="mypkgname";' | pk

Re: Remove a port without removing files

2021-10-05 Thread Eugene Grosbein
06.10.2021 0:03, Per olof Ljungmark wrote: > As the subject says, I need to remove a port so pkg etc does not care about > it, but keeping all the ports files intact. A package is just a tar.xz archieve and you may create it from installed port with "pkg create" command like this: pkg create zf

Re: Remove a port without removing files

2021-10-05 Thread raf
On Tue, Oct 05, 2021 at 07:03:30PM +0200, Per olof Ljungmark wrote: > As the subject says, I need to remove a port so pkg etc does not care about > it, but keeping all the ports files intact. > > Thanks, > Per Something like this might do what you want: cd / sudo tar czf /tmp/PORTNAME.tar