You are not logged in.

#1 2022-05-08 12:19:46

georgid53
Member
Registered: 2022-05-08
Posts: 2

[SOLVED] Removed dependency with hundreds of packages

Hello,

Today I wanted to upgrade my system, but it triggered an output, which said that Installing dav1d would break dependency libdav1d.so, required by ffmpeg-obs, so I thought that what I needed to do was remove dav1d. Fore some reason, I decided to force pacman with the flags -Rsc, which removed hundreds of packages, which were dependent on dav1d. I did not notice that at all for some reason as well, so I continued with upgrading what's left and rebooting my computer.

I tried searching the wiki if there was any possible solution to restoring those packages, but could not find anything to help me as of  now.

I wanted to ask, is there any way that is fixable? I lost a ton of applications and some of them I can recall, because I used to use them, but not all, and I'm afraid that reinstalling process individually would take a ton of time.

Thanks in advance!

Last edited by georgid53 (2022-05-08 12:27:36)

Offline

#2 2022-05-08 12:24:13

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] Removed dependency with hundreds of packages

See /var/log/pacman.log for what was removed.

Replacing system libs with AUR versions requires some knowledge. Avoid it.

Offline

#3 2022-05-08 12:27:15

georgid53
Member
Registered: 2022-05-08
Posts: 2

Re: [SOLVED] Removed dependency with hundreds of packages

Found the packages there, thanks.

Offline

#4 2022-05-08 12:28:31

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,587
Website

Re: [SOLVED] Removed dependency with hundreds of packages

Check your pacman.log and see what was removed. Explicitly reinstall the ones important to you, and some of the others will likely be pulled in as dependencies.

FTR: ffmpeg-obs is an AUR package, you should have removed that, performed the update, then rebuilt it against the new library, and reinstalled it (assuming you still want it).

EDIT: too slow.

Last edited by WorMzy (2022-05-08 12:53:33)


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

#5 2022-05-08 12:39:29

jonno2002
Member
Registered: 2016-11-21
Posts: 876

Re: [SOLVED] Removed dependency with hundreds of packages

grep "2022-05-09" /var/log/pacman.log|grep "removed"|cut -d ' ' -f 4 > list

open the list and remove everything apart from the packages you want as there will be alot of dependencies you dont want explicitly installed, then do this:

sudo pacman -S - < list

EDIT3: totaly re-written post as i rushed a bit and made silly mistakes

Last edited by jonno2002 (2022-05-08 12:59:00)

Offline

#6 2022-05-08 12:49:09

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] Removed dependency with hundreds of packages

Please don't use those commands. They will reinstall everything as explicitly installed, making something of a mess of your package management.

Offline

Board footer

Powered by FluxBB