You are not logged in.

#1 2010-05-14 12:51:53

dabd
Member
Registered: 2008-11-17
Posts: 109

Installing packages

In the wiki http://wiki.archlinux.org/index.php/Pac … g_packages it is said that:

Note: Do not refresh the package list when installing packages (i.e. pacman -Sy package_name); this can lead to dependency issues.[1] Upgrade explicitly first; before installing new packages.

Does this mean that I should upgrade the system with

pacman -Syu

everytime I want to install a new package?

Offline

#2 2010-05-14 12:55:01

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: Installing packages

I think it just means you should use "pacman -S" instead of "pacman -Sy" for installing packages.

Offline

#3 2010-05-14 12:58:08

dabd
Member
Registered: 2008-11-17
Posts: 109

Re: Installing packages

hokasch wrote:

I think it just means you should use "pacman -S" instead of "pacman -Sy" for installing packages.

I understood that part. The confusing bit is this one

Upgrade explicitly first; before installing new packages.

Thanks.

Last edited by dabd (2010-05-14 12:58:23)

Offline

#4 2010-05-14 13:08:55

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: Installing packages

"pacman -S pkg" is safe.   It will fail if the package has been updated and then you should do a full system update.

Doing regular full updates in Arch is a good thing.

Offline

#5 2010-05-14 13:09:31

evr
Arch Linux f@h Team Member
Registered: 2009-01-23
Posts: 554

Re: Installing packages

yes, running a 'pacman -Syu' before you install new packages helps to ensure that all your new installed packages will not have any dependency issues.

Offline

#6 2010-05-14 13:15:10

dabd
Member
Registered: 2008-11-17
Posts: 109

Re: Installing packages

evr wrote:

yes, running a 'pacman -Syu' before you install new packages helps to ensure that all your new installed packages will not have any dependency issues.

I understand that, but I also read somewhere that you should be careful about doing a full system upgrade, because arch is a rolling release distribution.

If I understood correctly, everytime I need to install a new package, I might break my system in two ways:

1. Updating the package list with 'pacman -Sy'
2. Upgrading the system with 'pacman -Syu'

Which one could potentially cause less damage?

Offline

#7 2010-05-14 13:16:52

dabd
Member
Registered: 2008-11-17
Posts: 109

Re: Installing packages

Allan wrote:

"pacman -S pkg" is safe.   It will fail if the package has been updated and then you should do a full system update.

Doing regular full updates in Arch is a good thing.

Ok, thanks.

Offline

#8 2010-05-14 15:29:05

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Installing packages

dabd wrote:

I also read somewhere that you should be careful about doing a full system upgrade

Indeed you should - careful like this.

Offline

Board footer

Powered by FluxBB