pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: How can I delete obsolete distfiles and local binary packages recursively?



On Mon, 10 Jun 2019 at 20:19, Adam Ciarciński <adam%netbsd.org@localhost> wrote:
>
> >> You can use pkgtools/lintpkgsrc.
> >>
> >> For example, to remove all distfiles, run:
> >>
> >> lintpkgsrc -or
> >
> > Thanks for that.
> >
> > And, just be sure, before I do something drastic, will:
> >
> > lintpkgsrc -pr
> >
> > Also remove packages? And can I join the switches together?
> >
> > lintpkgsrc -opr
> >
> > or
> >
> > lintpkgsrc -or -pr
>
> Give it a go without -r. It will print out what should be removed.
>
> Adam

Oops, it deleted everything:

oc@e130:~/pkgsrc/pkgsrc-current$ lintpkgsrc -r
Scan distinfo: .......................................... (15027 packages)
37 unreferenced file(s) in '/home/oc/pkgsrc/distfiles':
Babel-2.7.0.tar.gz
bash50-001
bash50-002
bash50-003
bash50-004
bash50-005
bash50-006
bash50-007
certdata-20190306.txt
certifi-2019.3.9.tar.gz
cffi-1.12.3.tar.gz
cmake-3.14.5.tar.gz
cryptography-2.7.tar.gz
dbus-1.12.14.tar.gz
gettext-0.20.1.tar.gz
glib-2.60.2.tar.xz
go1.12.4.src.tar.gz
gobject-introspection-1.60.1.tar.xz
gtk+-3.24.8.tar.xz
harfbuzz-2.4.0/harfbuzz-2.4.0.tar.bz2
icu4c-64_2-src.tgz
jemalloc-5.2.0.tar.bz2
Jinja2-2.10.1.tar.gz
libdrm-2.4.98.tar.bz2
libuv-1.29.1.tar.gz
Mako-1.0.9.tar.gz
meson-0.50.1.tar.gz
pixman-0.38.4.tar.bz2
pyparsing-2.4.0.tar.gz
PySocks-1.7.0.tar.gz
pytz-2019.1.tar.gz
qemu-4.0.0.tar.xz
requests-2.22.0.tar.gz
roman-3.2.tar.gz
setuptools-41.0.1.zip
urllib3-1.25.2.tar.gz
urllib3-1.25.3.tar.gz
checksum mismatches
Unlinking 'bad' distfiles
Scan Makefiles: 16310 packages
/home/oc/pkgsrc/packages/All/libepoxy-1.4.3nb2.tgz
/home/oc/pkgsrc/packages/All/gdbus-codegen-2.60.2.tgz
/home/oc/pkgsrc/packages/All/gtk3+-3.24.8.tgz
/home/oc/pkgsrc/packages/All/py37-certifi-2019.3.9.tgz
/home/oc/pkgsrc/packages/All/py37-cElementTree-3.7.3.tgz
/home/oc/pkgsrc/packages/All/graphite2-1.3.11nb2.tgz
/home/oc/pkgsrc/packages/All/gdbus-codegen-2.56.2nb2.tgz
/home/oc/pkgsrc/packages/All/gobject-introspection-1.60.1.tgz
/home/oc/pkgsrc/packages/All/glib2-2.60.2nb1.tgz
/home/oc/pkgsrc/packages/All/pixman-0.38.4.tgz
/home/oc/pkgsrc/packages/All/py37-urllib3-1.25.3.tgz
/home/oc/pkgsrc/packages/All/harfbuzz-2.4.0nb3.tgz
/home/oc/pkgsrc/packages/All/cmake-3.14.5.tgz
/home/oc/pkgsrc/packages/All/gettext-lib-0.20.1.tgz
/home/oc/pkgsrc/packages/All/MesaLib-11.2.2nb11.tgz
/home/oc/pkgsrc/packages/All/pango-1.42.4nb4.tgz
/home/oc/pkgsrc/packages/All/python37-3.7.3nb1.tgz
/home/oc/pkgsrc/packages/All/py27-mako-1.0.9.tgz
/home/oc/pkgsrc/packages/All/glib2-tools-2.60.2.tgz
/home/oc/pkgsrc/packages/All/dbus-1.12.14.tgz
/home/oc/pkgsrc/packages/All/py37-pyparsing-2.4.0.tgz
/home/oc/pkgsrc/packages/All/py37-cffi-1.12.3.tgz
/home/oc/pkgsrc/packages/All/xcb-proto-1.13nb1.tgz
/home/oc/pkgsrc/packages/All/gettext-tools-0.20.1.tgz
/home/oc/pkgsrc/packages/All/py37-setuptools-41.0.1.tgz
/home/oc/pkgsrc/packages/All/py37-cryptography-2.7.tgz
/home/oc/pkgsrc/packages/All/mozilla-rootcerts-1.0.20190306.tgz
/home/oc/pkgsrc/packages/All/py37-roman-3.2.tgz
/home/oc/pkgsrc/packages/All/icu-64.2nb1.tgz
/home/oc/pkgsrc/packages/All/jemalloc-5.2.0.tgz
/home/oc/pkgsrc/packages/All/py37-requests-2.22.0.tgz
/home/oc/pkgsrc/packages/All/py27-setuptools-41.0.1.tgz
/home/oc/pkgsrc/packages/All/py37-Socks-1.7.0.tgz
/home/oc/pkgsrc/packages/All/libuv-1.29.1.tgz
/home/oc/pkgsrc/packages/All/qemu-4.0.0nb5.tgz
/home/oc/pkgsrc/packages/All/ninja-build-1.9.0nb1.tgz
/home/oc/pkgsrc/packages/All/py37-babel-2.7.0.tgz
/home/oc/pkgsrc/packages/All/py37-pytz-2019.1.tgz
/home/oc/pkgsrc/packages/All/libdrm-2.4.98.tgz
/home/oc/pkgsrc/packages/All/libLLVM4-4.0.1nb1.tgz
/home/oc/pkgsrc/packages/All/py37-jinja2-2.10.1.tgz
/home/oc/pkgsrc/packages/All/py37-meson-0.50.1.tgz
/home/oc/pkgsrc/packages/All/py37-expat-3.7.3.tgz
Unlinking listed prebuiltpackages


$ ls /home/oc/pkgsrc/packages/All/py37-expat-3.7.3.tgz
ls: cannot access '/home/oc/pkgsrc/packages/All/py37-expat-3.7.3.tgz':
No such file or directory


Actually, not the end of the world, because that's what I wanted in
the first place, but not what we expected.


-- 
Ottavio Caruso


Home | Main Index | Thread Index | Old Index