I've been running on a March 2015 nightly build of LMS for quite some
time.
I'm preparing to upgrade, but we're going to go from FreeBSD 9.3 to
FreeBSD 11 first, and that will take some time.
Today I badly broke my lms execution environment by trying to install
emacs.
pkg install emacs25
upgraded perl, installed a bunch of things it thought emacs needed, and
left the system with
a totally broken lms, and NOT a running emacs.
I was helpfully clued in on how to fix this:
> The old package is most likely in /var/cache/pkg. You can remove the
> current version and add the old package with pkg add <pkgname.txz>. It
> would be good to sanity check the end result with pkg check -d and pkg
> check -B to make sure things are in a consistent state.
I did
pkg delete perl5
and it deleted all the crap emacs25 installed including the broken emacs
25:
Code:
--------------------
root@lms_1:/var/cache/pkg # pkg delete perl5
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 45 packages (of 0
packages in the universe):
Installed packages to be REMOVED:
perl5-5.24.1.r4_1
p5-Error-0.17023
p5-Socket-2.024
p5-IO-Socket-IP-0.36
p5-Mozilla-CA-20141217
p5-App-cpanminus-1.7042
p5-MIME-Base64-3.15
p5-Digest-HMAC-1.03_1
p5-Net-SSLeay-1.78
p5-Net-SMTP-SSL-1.01_3
p5-Log-Log4perl-1.48
p5-IO-Socket-SSL-2.012
git-2.3.0
ImageMagick-6.9.6.4,1
p5-GSSAPI-0.28_1
p5-Authen-SASL-2.16_1
p5-Audio-Scan-0.96
llvm37-3.7.1_4
glib-2.46.2_4
emacs25-25.1,3
libEGL-11.2.2
harfbuzz-1.3.4
avahi-app-0.6.31_5
shared-mime-info-1.5
gtk-update-icon-cache-2.24.29
pango-1.38.0_1
libcroco-0.6.11
cairo-1.14.6_1,2
dconf-0.24.0_1
polkit-0.113_2
ORBit2-2.14.19_2
libIDL-0.8.14_3
liblqr-1-0.4.2
dbus-glib-0.104
gconf2-3.2.6_4
desktop-file-utils-0.22_4
gobject-introspection-1.46.0
libgsf-1.14.36
gtk2-2.24.29_3
atk-2.18.0
librsvg2-2.40.16
gdk-pixbuf2-2.32.3_1
cups-2.2.1
ghostscript9-agpl-base-9.16_5
ghostscript9-agpl-x11-9.16_2
Number of packages to be removed: 45
--------------------
I then looked in /var/cache/pkg for all the p5 packages and worked at
re-installing them.
IMPORTANT: If you go to unbreak your world, beware trying to install
too recent a version. It will try to upgrade to the new/broken perl:
Code:
--------------------
root@lms_1:/var/cache/pkg # pkg install p5-Authen-SASL-2.16_1-4fbf72767e.txz
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
The following 4 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
p5-Authen-SASL: 2.16_1
p5-Digest-HMAC: 1.03_1
p5-GSSAPI: 0.28_1
Installed packages to be UPGRADED:
perl5: 5.18.4_11 -> 5.24.1.r4_1
Number of packages to be installed: 3
Number of packages to be upgraded: 1
The process will require 2 MiB more space.
7 KiB to be downloaded.
Proceed with this action? [y/N]:
--------------------
Here is a script that I evolved as I installed things in the right
order:
(Your mileage may vary.)
Code:
--------------------
#! /bin/sh
pkg delete perl5
pkg install perl5-5.18.4_11-baa451b56b.txz
pkg install p5-Error-0.17022-5ab151c119.txz
pkg install p5-App-cpanminus
pkg install p5-Socket-2.018-bf7b7818d6.txz
# pkg install p5-Authen-SASL-2.16_1-4fbf72767e.txz
pkg install p5-Mozilla-CA-20141217-b320160028.txz
pkg install p5-IO-Socket-IP-0.36-4b763498f5.txz
pkg install p5-Net-SSLeay-1.68-dc0f6a2339.txz
pkg install p5-IO-Socket-SSL-2.012-d1b8252b49.txz
pkg install p5-Digest-HMAC-1.03_1-86e59fe7ab.txz
pkg install p5-GSSAPI-0.28_1-22724ab443.txz
pkg install p5-Log-Log4perl-1.48-ab3a38e230.txz
pkg install p5-Net-SMTP-SSL-1.01_3-378c8cc382.txz
--------------------
------------------------------------------------------------------------
wcattey's Profile: http://forums.slimdevices.com/member.php?userid=7506
View this thread: http://forums.slimdevices.com/showthread.php?t=104122
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix