You are not logged in.

#1 2021-07-31 08:03:21

anthony93
Member
Registered: 2021-07-31
Posts: 11

Understanding how pacman works from an algorithmic perspective.

Hello. I'm new to Linux and have been using an Arched-based distribution (Manjaro) for the past two weeks. Hopefully, one day I'll gain enough experience to finally switch to Arch. Anyway, back to my question.

First of all, please don't get me wrong. I'm not here because I'm too lazy to go through the source code; I'm here because I want to get a general understanding of how pacman works without being bogged down by the nitty-gritty details. For instance, we all know that running

sudo pacman -Sy 

is a bad idea because it will lead to partial upgrades. But I'd like understand how it leads to a partial upgrade. For example, when one types

sudo pacman -Sy 

and then

sudo pacman -S package 

What's actually happening behind the scenes? What are the immediate consequences of those commands? Which local file(s) get(s) modified. Etc.

I'd like to get a general picture of what's going on behind the scenes, sort of like a pseudocode for pacman, if you will. I'd appreciate it a lot of someone can explain it to me, or point me to a few sources where I can read up on the topic.

Thanks in advance.

Anthony.

Offline

#2 2021-07-31 08:39:17

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,794
Website

Re: Understanding how pacman works from an algorithmic perspective.


https://ugjka.net
paru > yay | webcord > discord
pacman -S spotify-launcher
mount /dev/disk/by-...

Offline

#3 2021-07-31 09:38:31

icar
Member
From: Catalunya
Registered: 2020-07-31
Posts: 442

Re: Understanding how pacman works from an algorithmic perspective.

Try running your pacman commands with --debug

Offline

#4 2021-07-31 09:58:35

anthony93
Member
Registered: 2021-07-31
Posts: 11

Re: Understanding how pacman works from an algorithmic perspective.

icar wrote:

Try running your pacman commands with --debug

This is exactly what I need. Thank you.

Offline

#5 2021-07-31 09:59:21

anthony93
Member
Registered: 2021-07-31
Posts: 11

Re: Understanding how pacman works from an algorithmic perspective.

I just finished reading through this. Thanks for sharing.

Offline

Board footer

Powered by FluxBB