Skip to content

Commit

Permalink
aur.1: remove bind mount example
Browse files Browse the repository at this point in the history
The main purpose for using bind mounts is read-only mount. Latter will
prevent use of paccache or pacman -Sc entirely to remove stale
packages, unless specifically pointed to the original repository path
with -c <repo>. If the purpose of a read-only mount was to avoid typos
resulting in data loss, the user could equally typo the -c <repo>
command.
  • Loading branch information
AladW committed Mar 4, 2019
1 parent ac90cab commit ba06308
Showing 1 changed file with 10 additions and 18 deletions.
28 changes: 10 additions & 18 deletions man1/aur.1
Expand Up @@ -176,24 +176,16 @@ Note that
.BR "pacman -Scc"
will remove packages regardless of the
.B CleanMethod
setting. An alternative is to use
.BR "mount --bind " and
remount the local repository to a CacheDir path. For example:
.EX
# mount --bind /home/custompkgs /var/cache/pacman/custom
.EE
To avoid accidental modification, this mount can then be made read-only:
.EX
# mount -o remount,bind,ro /home/custompkgs /var/cache/pacman/custom
.EE
.\" A third option is to use aur-build --results and symlink the
.\" built packages. However, this assumes that pacman -Sc uses unlink(2)
.\" to remove packages (i.e. it does not follow symbolic links). Such
.\" behavior is not documented and may change at any time.
setting.

An alternative is to use
.B aur-build \-\-results
and symlink the built packages. However, this assumes that
.B pacman \-Sc
uses
.BR unlink (2)
to remove packages (i.e. it does not follow symbolic links). Such
behavior is not documented and may change at any time.

.SH EXAMPLES
In this section, we assume that
Expand Down

0 comments on commit ba06308

Please sign in to comment.