/var/log/pacman.log has permissions -rw-r--r-- and can be read by anyone. There is no need to use sudo.
This message brought to you by the Society for the Prevention of Unnecessary Use of Sudo, together with the Societies for the Prevention of cat Abuse and which-craft.
tac is the opposite of cat - in writing and in function - and quite useful in this case
to list the pacman log in reverse order - starting from the most recent entries
no need to load the whole file into an editor and then to scroll all the way down … tac /var/log/pacman.log | less
Instead, you can scroll up to go back in time.
Otherwise, you just need less: less /var/log/pacman.log
and then scroll down.
Theres literally zero reason for them to have interactivity with it in the first place.
Besides which it doesnt even require such access rights.
Run your updates again?
You cant ‘do the same thing from the same place’ because your system is not in the same state as it was.
I suppose you can uninstall and reinstall the packages in question.
But that would be rather silly when if you want to see the optional dependencies you can just look at them;
You want to run pacman -Qi on all of your packages?
Then you can just
pacman -Qi
Which would be about the same as
pacman -Qi $(pacman -Qsq)
But … if you are asking about the ones you just recently installed …
Then just put the names there. You know what packages they are and/or can look in the history.
All your questions are already answered with helpful wiki’s. Please don’t be a Help Vampire. Do your own research instead of taking advantage of helpful volunteers. You’ll learn nothing that way.