![]() |
|
|||||||
| OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|||
|
I think the mirror I used for a new 4.7 install was incomplete as I had several errors (some packages not found that I manually installed)
I must of missed something as my xfce4 desktop is missing components. I would like to delete all packages and try again with a second level mirrror. I applied all 5 patches to the core and was wondering if there is either a way to force replacement of all packages or to delete all installed packages? FreeBSD has a pke_delete -a but OpenBSD does not. Is there a script that would do this? Thanks |
|
|||
|
It is fairly straightforward to pass the output of pkg_info(1) to pkg_delete(1):
Code:
#/bin/sh
for f in $(pkg_info | awk '{ print $1 }') ; do
echo "pkg_delete -F $f"
done
|
|
|||
|
The package tools are pretty smart as well, you can do something like pkg_delete /var/db/pkg/* and it should work.
|
|
|||
|
Thanks for both replies. I'm a lazy typist and tried BSDfan666 solution which worked.
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Listing of installed packages | cyril | OpenBSD Packages and Ports | 2 | 9th June 2009 01:24 AM |
| Need a lightweight browser to replace Fx3 | TerryP | General software and network | 15 | 12th February 2009 09:45 PM |
| sh replace string | graudeejs | Programming | 2 | 24th July 2008 06:37 PM |
| Cannot delete it.... | graudeejs | FreeBSD General | 9 | 20th July 2008 12:45 PM |
| proxy : replace gif with local gif | milo974 | OpenBSD General | 4 | 17th July 2008 06:45 AM |