|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
How about 'pkg_info -m' for all manually installed packages and save to 'file' then 'pkg_add -l' file ?
|
|
|||
One way
1) Generate a list of manually installed packages leaving out the dependencies $ pkg_info -m > pkgs.txt 2) Delete all installed packages # pkg_delete /var/db/pkg/* 3) You may need to edit your pkgs.txt if there have been interim updates/patches. Here is an example: Code:
cabextract-1.5p0 extracts files from Microsoft CAB archives Code:
cabextract 4) Re install the packages from pkgs.txt Code:
pkg_add -l pkgs.txt Last edited by shep; 4th March 2015 at 04:23 PM. |
|
|||
mfaridi , may I ask you why or what has happened that made you decide to remove all packages and reinstall again ?
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Why does pkg_add sometimes report "packages is empty" ? | sw2wolf | OpenBSD Packages and Ports | 2 | 22nd March 2012 12:51 AM |
Delete or replace all installed packages | shep | OpenBSD Packages and Ports | 3 | 24th May 2010 01:31 AM |
A plan for a remote install and reinstall of FreeBSD | J65nko | FreeBSD Installation and Upgrading | 4 | 14th February 2010 02:46 PM |
Listing of installed packages | cyril | OpenBSD Packages and Ports | 2 | 9th June 2009 01:24 AM |
System messed up, should I just reinstall? | AncientDragonfly | FreeBSD Ports and Packages | 22 | 22nd April 2009 04:33 AM |