You are not logged in.

#1 2008-01-23 19:51:07

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

New message after pacman-optimize. Which sync operation?

After running pacman-optimize:

==> Finished. Your pacman database has been optimized.
==> For full benefits of pacman-optimize, run 'sync' now.

Is it asking me to sync pacman, (pacman -Sy) or just run

# sync

?

Offline

#2 2008-01-23 19:52:23

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: New message after pacman-optimize. Which sync operation?

I assume it means run

# sync

when it says "run sync"

Last edited by Cerebral (2008-01-23 20:01:49)

Offline

#3 2008-01-23 19:57:23

dolby
Member
From: 1992
Registered: 2006-08-08
Posts: 1,581

Re: New message after pacman-optimize. Which sync operation?

-Sy = sync ,  at least the way i see it

Last edited by dolby (2008-01-23 19:58:27)


There shouldn't be any reason to learn more editor types than emacs or vi -- mg (1)
[You learn that sarcasm does not often work well in international forums.  That is why we avoid it. -- ewaller (arch linux forum moderator)

Offline

#4 2008-01-23 20:01:02

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: New message after pacman-optimize. Which sync operation?

From man sync:

SYNC(1)                          User Commands                         SYNC(1)

NAME
       sync - flush file system buffers

SYNOPSIS
       sync [OPTION]

DESCRIPTION
       Force changed blocks to disk, update the super block.

That certainly sounds like it'd give you the full benefits of pacman-optimize, which is essentially a defragger. 

Running pacman -Sy immediately after running pacman-optimize might just undo some of the work pacman-optimize did, since it downloads entirely new sync repos and replaces the existing ones.

Offline

#5 2008-01-23 20:03:24

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: New message after pacman-optimize. Which sync operation?

LOL, 2 different points of view. Thanks lol
I ran both, to be sure.

Last edited by Misfit138 (2008-01-23 20:04:14)

Offline

#6 2008-01-23 20:05:04

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: New message after pacman-optimize. Which sync operation?

Cerebral wrote:

From man sync:

SYNC(1)                          User Commands                         SYNC(1)

NAME
       sync - flush file system buffers

SYNOPSIS
       sync [OPTION]

DESCRIPTION
       Force changed blocks to disk, update the super block.

That certainly sounds like it'd give you the full benefits of pacman-optimize, which is essentially a defragger. 

Running pacman -Sy immediately after running pacman-optimize might just undo some of the work pacman-optimize did, since it downloads entirely new sync repos and replaces the existing ones.

Makes sense. smile

Offline

#7 2008-01-23 20:08:59

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: New message after pacman-optimize. Which sync operation?

I would run -Sy before, and sync after, for the reasons given by Cerebral.


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#8 2008-01-24 08:42:04

Basn
Member
From: Stockholm
Registered: 2007-08-13
Posts: 47

Re: New message after pacman-optimize. Which sync operation?

Heh, i can say i tought they ment pacman -Sy, but i clearly see why to use sync when i saw that manpage smile

Offline

Board footer

Powered by FluxBB