Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Dec 2006 19:32:37 +0000
From:      Ceri Davies <ceri@submonkey.net>
To:        Drew <cotharyus@gmail.com>
Cc:        questions@freebsd.org
Subject:   Re: Ports: Starting over from scratch?
Message-ID:  <20061204193237.GA41115@submonkey.net>
In-Reply-To: <715841970612041105tc406d79qfd275b5886dc1e38@mail.gmail.com>
References:  <715841970612041105tc406d79qfd275b5886dc1e38@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--h31gzZEtNLTqOjlF
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Dec 04, 2006 at 01:05:08PM -0600, Drew wrote:
> I'm running into some problems on a desktop box that I've not seen anywhe=
re
> else with upgrading multiple ports. The problem is so extensive, and a
> solution not being forthcoming, I'm very tempted to make deinstall from
> /usr/ports and then pkg_deinstall -a, and start over again. Does anyone h=
ave
> any advice or input on a procedure like this?

I did something similar recently when I decided to remove all traces of
kde and gnome from my desktop in favour of wmii.  Basically, I did the
following.

  o List all ports on the system
      pkg_info -E \* > /tmp/installed_ports

  o Edit the list, and delete every line except that which I know I want
	cp /tmp/installed_ports /tmp/required_ports
	vi /tmp/required_ports

  o Remove everything left in the file, letting the dependencies take
     care of keeping everything that I actually need
	pkg_delete `cat /tmp/required_ports`

  o Have pkgdb fix up any problems (there weren't any)
	pkgdb -Ff

In my case though, I didn't want the ports that were being removed.  It
sounds llike you do, in which case you could also save the origins of
the ports that you have installed and install them again afterwards.

To save the origins of all of your installed ports:
   pkg_info -oa | grep / > /tmp/port_origins

Then you can just throw them all back in with portinstall or similar.

Ceri
--=20
That must be wonderful!  I don't understand it at all.
                                                  -- Moliere

--h31gzZEtNLTqOjlF
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)

iD8DBQFFdHfVocfcwTS3JF8RAuyGAKC5J0J1HzgJXbP3QRqhrdRyFPetjACfdgkb
CVl68vxM8lKEwSv1DeCdS8g=
=sxlD
-----END PGP SIGNATURE-----

--h31gzZEtNLTqOjlF--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061204193237.GA41115>