Downgrade a pkg

Matthew Seaman matthew at freebsd.org
Fri Oct 3 10:42:22 UTC 2014


On 10/03/14 10:37, Maurizio Vairani wrote:
> I need to downgrade VirtualBox to version 4.3.12_1.
> How can I do it ?

Basically, you start by checking in /var/cache/pkg to find the pkg
tarball of the version of VirtualBox you want.  There may be several
with the correct package version:

ox-dell39:/var/cache/pkg:% ls -l virtualbox-ose-4.3.12_1*
-rw-r--r--  1 root  wheel  88492156 Aug  6 00:57
virtualbox-ose-4.3.12_1-24f6bbc275.txz
-rw-r--r--  1 root  wheel  88470756 Aug 16 05:07
virtualbox-ose-4.3.12_1-3508613e60.txz
-rw-r--r--  1 root  wheel  88492848 Aug 13 01:57
virtualbox-ose-4.3.12_1-971aa33e9e.txz
lrwxr-xr-x  1 root  wheel        38 Aug 20 11:55
virtualbox-ose-4.3.12_1.txz@ -> virtualbox-ose-4.3.12_1-3508613e60.txz

Choose the most recent one -- these are just where the package has been
rebuilt because of changes in the packages it depends on.

You'll need to use pkg info -fF pkg-name.txz and check that you have all
the right dependencies installed.

If so, then you can pkg delete your current version of VirtualBox and
then use pkg add pkgname.txz to reinstall from the pkg tarball.

No guarantees that this process will produce a usable result though.
Try at your own risk.

	Cheers,

	Matthew




-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20141003/ddc6f325/attachment.sig>


More information about the freebsd-questions mailing list