You are not logged in.

#1 2012-08-02 13:55:28

slavik262
Member
From: WA, USA
Registered: 2012-07-12
Posts: 46
Website

Safe to run pacman -Syu inside X?

Before arriving here at Arch, I used Aptosid, a distro based on Debian Unstable. The Aptosid user manuals highly recommended logging out of X and dropping to runlevel 3 (X off) before upgrading packages. I would assume this was done so that if the upgrade process took down X or if X crashed, the upgrades wouldn't be interrupted.

In Arch, is it safe to upgrade packages with pacman from within your X environment?

Offline

#2 2012-08-02 13:59:49

D4ve
Member
Registered: 2012-08-02
Posts: 209

Re: Safe to run pacman -Syu inside X?

Yes, why not?

Only if you update your graphics card driver or the xserver i would switch to runlevel 3.

Offline

#3 2012-08-02 14:00:02

Shark
Member
From: /dev/zero
Registered: 2011-02-28
Posts: 663

Re: Safe to run pacman -Syu inside X?

Hm, good point. Never thought of it. I think it would suffice to just change console to, for example, tty1 and then do the upgrade, i think.


If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau

Registered Linux User: #559057

Offline

#4 2012-08-02 14:02:39

jjacky
Member
Registered: 2011-11-09
Posts: 321
Website

Re: Safe to run pacman -Syu inside X?

Yes. pacman will only update your system, but it won't stop/restart anything. So even if e.g. xorg-server is updated, X will not be stop or restarted, it's up to you to do so. Just like you should reboot after a kernel update, but pacman will not do anything other than the actual update.

Offline

#5 2012-08-02 15:20:45

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Safe to run pacman -Syu inside X?

99% of the time I am updating my system from X, using Guake.

The other 1% is either from a different terminal, from a TTY or from SSH.


I've been doing this for years, so yes, I consider it to be safe.


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#6 2012-08-03 00:22:01

Citanul
Member
Registered: 2012-02-04
Posts: 6
Website

Re: Safe to run pacman -Syu inside X?

I've updated my graphic drivers and the X server (and ran pacman -Syu) while running X countless times and haven't had any problems. Don't worry about it.
I even removed glibc and the whole /lib once and my workspaces and all my open applications still worked but I couldn't launch anything.

Offline

Board footer

Powered by FluxBB