You are not logged in.

#1 2017-06-14 15:01:39

fusca
Member
Registered: 2008-01-16
Posts: 25

Pacman's DBPath for "local" and "sync" directories

Hi...

Recently I bought a SSD and would like to store the "local" and "sync" directories files in separate directories (not in the default /var/lib/pacman/), to avoid unnecessary writes to my SDD flash memory.

Is there a way to set the "local" and "sync" directories separately by using, for example, a "DBPath_local" and "DBPath_sync" variables in pacman.conf?

For example (in pacman.conf):
   DBPath_local = /var/lib/pacman/local    # local mount point
   DBPath_sync = /tmp/sync  # tmpfs mount point

I know I could create different mount points using tmpfs and this will solve my problem, but specifying those paths separately to "local" and "sync" directories in pacman.conf would be better.

Thanks in advance.

Last edited by fusca (2017-06-14 15:02:45)

Offline

#2 2017-06-14 15:52:05

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Pacman's DBPath for "local" and "sync" directories

IMHO this is pointless, there is no need to restirct writes on modern SSDs as there lifetime is now longer than traditional HDs anyway. Also the size of the pacman directories is trivial, modern SSDs can easily handle 100's of GB of writes per day.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

Board footer

Powered by FluxBB