You are not logged in.

#1 2016-05-08 14:36:17

masteryod
Member
Registered: 2010-05-19
Posts: 433

Somehow missed update to pacman-5.0.1 before 2016-04-23

I have one machine that isn't updated so often. Long story short, I missed deadline by a day.

[2016-04-24 14:50] [ALPM] upgraded pacman (4.2.1-4 -> 5.0.1-2)

Everything seems to work fine. What are the repercussions of this to my system, what should I fix?

Offline

#2 2016-05-08 14:41:31

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,783
Website

Re: Somehow missed update to pacman-5.0.1 before 2016-04-23

Some caches might be out of date. e.g. update-desktop-database, update-mime-database, gtk-update-icon-cache..

Basically, for packages that install a hook to /usr/share/libalpm/hooks/, you may need to run the hook manually.

$ pkgfile -d /usr/share/libalpm/hooks/ 
core/glib2
core/pacman
core/texinfo
extra/desktop-file-utils
extra/dkms
extra/gconf
extra/gdk-pixbuf2
extra/gtk-update-icon-cache
extra/gtk2
extra/gtk3
extra/shared-mime-info
community/appstream
community/etckeeper

Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2016-05-08 15:02:44

masteryod
Member
Registered: 2010-05-19
Posts: 433

Re: Somehow missed update to pacman-5.0.1 before 2016-04-23

Wouldn't be enough just to reinstall packages from this list?

# pkgfile -d /usr/share/libalpm/hooks/
core/glib2
core/pacman
core/texinfo
extra/desktop-file-utils
extra/dkms
extra/gconf
extra/gdk-pixbuf2
extra/gtk-update-icon-cache
extra/gtk2
extra/gtk3
extra/shared-mime-info
community/appstream
community/etckeeper

Offline

#4 2016-05-08 15:23:09

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,461

Re: Somehow missed update to pacman-5.0.1 before 2016-04-23

Not necessarily. Those packages may or may not activate the hooks, and some of the hooks need to know specifically what was installed when they activated.

Offline

#5 2016-05-08 15:25:11

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: Somehow missed update to pacman-5.0.1 before 2016-04-23

I would've suggested doing a

pacman -Sy && pacman -S pacman && pacman -Su

Hooks installed during a pacman transaction are still considered in order to be run at the end of that transaction, so as long as you have a version of pacman that supports hooks you should be okay. wink

...

Hooks don't trigger themselves on being installed (though it is possible some will come in the same package as a file that does trigger them), and some of them actually need to be run with input: the list of installed files that triggered them. For example, the texinfo hooks.

You will need to see about running the commands in the hooks by hand to make sure they are properly run. (e.g. You could delete the info directory file, then run install-info on each file in /usr/share/info/ to make sure it indexes only/all the files that actually exist.)

Last edited by eschwartz (2016-05-08 15:29:31)


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#6 2016-05-08 16:36:12

masteryod
Member
Registered: 2010-05-19
Posts: 433

Re: Somehow missed update to pacman-5.0.1 before 2016-04-23

I ended up doing:

pacman -Sy && pacman -S pacman && pacman -Su
/usr/bin/update-mime-database /usr/share/mime
/usr/bin/update-mime-database /usr/share/mime
/usr/bin/update-desktop-database --quiet
/usr/share/libalpm/scripts/gtk-update-icon-cache
/usr/share/libalpm/scripts/gtk-update-icon-cache
/usr/bin/gtk-query-immodules-3.0 --update-cach
/usr/bin/gtk-query-immodules-3.0 --update-cache
/usr/bin/gtk-query-immodules-2.0 --update-cache
/usr/bin/gio-querymodules /usr/lib/gio/modules
/usr/bin/gdk-pixbuf-query-loaders --update-cache
pacman -S glib2 texinfo desktop-file-utils dkms gconf gdk-pixbuf2 gtk-update-icon-cache gtk2 gtk3 shared-mime-info appstream etckeeper

Offline

#7 2016-05-08 17:12:02

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,783
Website

Re: Somehow missed update to pacman-5.0.1 before 2016-04-23

...you didn't need to install all the packages with hooks. If you don't use those packages usually, there's no reason to install them now.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#8 2016-05-08 20:31:00

masteryod
Member
Registered: 2010-05-19
Posts: 433

Re: Somehow missed update to pacman-5.0.1 before 2016-04-23

Yeah, that's obvious but unless I missed something all of those were just reinstalled.

Offline

Board footer

Powered by FluxBB