Skip to content

Recursively reinstall all packages firefox depends on?

Hi guys, recently something went wrong during a system upgrade because my root partition was full and my arch end up with a broken firefox. It starts but crashes whenever I start browsing a page. I've reinstalled fox and cleaned cache&profile files with no success. I suspect there is a broken package somewhere. How can I find that broken file or reinstall everything firefox need to be sure? Thanks

14 points7 comments
Open on Reddit
About this post
Posted
Archived
Score
14 · 100% up
Kind
Text
ID
33cety

Author

1
posts
29
comments
0
media
View profile

7 comments

See here for a way to list all the dependencies of a package in a format that can then be easily piped to pacman for reinstallation. Example:

pacman -Si firefox | awk -F ": " -v filter="^Depends" \ '$0 ~ filter {gsub(/[>=<][^ ]*/,"",$2) ; gsub(/ +/,"\n",$2) ; print $2}' | sudo pacman -S --asdeps -

Or if you put that long command into a script called pacdeps.sh:

pacdeps.sh firefox | sudo pacman -S --asdeps -

Or you could just run

pacman -Si firefox

and manually write down/copy-paste the dependencies and install them like so:

sudo pacman -S --asdeps gtk2 mozilla-common libxt ...
6 points

Thanks, this is really useful! I found all dependencies and their dependencies using this script. But firefox still crashes. Maybe there is a third level dependency broken but I'm not sure.

1 points

Sorry, no answer to your question. But couldn't you check the logs to see which packages were supposed to be included in the update which went wrong, and just reinstall all of those?

4 points

I will try as soon as I get home then. Edit: It seems those logs are rotated because it has been a few days since then.

1 points

You can $ pacman -Qi firefox to find dependencies and packages depended on it.

2 points

It's not that easy since everything firefox depends on also depends on something. I guess you're getting close to reinstalling most of the base system and whatnot if you follow through with that idea.

You can try and check installed packages with

pacman -Qkk [package]

for modifications and other errors.

What's your error with firefox? Did you start firefox from the command line and look at the errors?

1 points

It gives a seg fault. I didn't look at core dump because those were disabled. I'm going to enable them and try to look at it. I couldn't figured out whats going on since I've already reinstalled most the base packages.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.