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
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.
Isn't rm /var/db/pkg/local.sqlite the fastest way?
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
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
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