parent
0c05880c74
commit
02fb173d3e
2 changed files with 60 additions and 0 deletions
50
etc/pamac.conf
Normal file
50
etc/pamac.conf
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
### Pamac configuration file
|
||||||
|
|
||||||
|
## When removing a package, also remove those dependencies
|
||||||
|
## that are not required by other packages (recurse option):
|
||||||
|
RemoveUnrequiredDeps
|
||||||
|
|
||||||
|
## How often to check for updates, value in hours (0 to disable):
|
||||||
|
RefreshPeriod = 3
|
||||||
|
|
||||||
|
## When no update is available, hide the tray icon:
|
||||||
|
#NoUpdateHideIcon
|
||||||
|
|
||||||
|
## When applying updates, enable packages downgrade:
|
||||||
|
EnableDowngrade
|
||||||
|
|
||||||
|
## When installing packages, do not check for updates:
|
||||||
|
SimpleInstall
|
||||||
|
|
||||||
|
## Allow Pamac to search and install packages from AUR:
|
||||||
|
EnableAUR
|
||||||
|
|
||||||
|
## Keep built packages from AUR in cache after installation:
|
||||||
|
#KeepBuiltPkgs
|
||||||
|
|
||||||
|
## When AUR support is enabled check for updates from AUR:
|
||||||
|
CheckAURUpdates
|
||||||
|
|
||||||
|
## When check updates from AUR support is enabled check for vcs updates:
|
||||||
|
CheckAURVCSUpdates
|
||||||
|
|
||||||
|
## AUR build directory:
|
||||||
|
BuildDirectory = /var/tmp
|
||||||
|
|
||||||
|
## Number of versions of each package to keep when cleaning the packages cache:
|
||||||
|
KeepNumPackages = 0
|
||||||
|
|
||||||
|
## Remove only the versions of uninstalled packages when cleaning the packages cache:
|
||||||
|
#OnlyRmUninstalled
|
||||||
|
|
||||||
|
## Download updates in background:
|
||||||
|
#DownloadUpdates
|
||||||
|
|
||||||
|
## Maximum Parallel Downloads:
|
||||||
|
MaxParallelDownloads = 4
|
||||||
|
|
||||||
|
#CheckFlatpakUpdates
|
||||||
|
|
||||||
|
#EnableSnap
|
||||||
|
|
||||||
|
#EnableFlatpak
|
10
setup.sh
10
setup.sh
|
@ -63,6 +63,8 @@ package_remove() {
|
||||||
}
|
}
|
||||||
|
|
||||||
setup_essentials() {
|
setup_essentials() {
|
||||||
|
sudo pacman -S --needed base-devel wget
|
||||||
|
|
||||||
# install pamac if it does not exist
|
# install pamac if it does not exist
|
||||||
if ! command -v pamac &>/dev/null; then
|
if ! command -v pamac &>/dev/null; then
|
||||||
log "pamac was not installed already. Installing now..."
|
log "pamac was not installed already. Installing now..."
|
||||||
|
@ -615,12 +617,20 @@ setup_pacman() {
|
||||||
|
|
||||||
setup_pamac() {
|
setup_pamac() {
|
||||||
smart_mkdir "$SCRIPT_DIR/tmp"
|
smart_mkdir "$SCRIPT_DIR/tmp"
|
||||||
|
|
||||||
cd "$SCRIPT_DIR/tmp" || (error "failed to move to $SCRIPT_DIR/tmp for pamac installation" && exit 1)
|
cd "$SCRIPT_DIR/tmp" || (error "failed to move to $SCRIPT_DIR/tmp for pamac installation" && exit 1)
|
||||||
sudo pacman --noconfirm -S --needed git
|
sudo pacman --noconfirm -S --needed git
|
||||||
|
git clone https://aur.archlinux.org/libpamac-aur.git
|
||||||
|
cd ./libpamac-aur && makepkg -si
|
||||||
|
|
||||||
|
cd "$SCRIPT_DIR/tmp" || (error "failed to move to $SCRIPT_DIR/tmp for pamac installation" && exit 1)
|
||||||
git clone https://aur.archlinux.org/pamac-aur.git
|
git clone https://aur.archlinux.org/pamac-aur.git
|
||||||
cd ./pamac-aur && makepkg -si
|
cd ./pamac-aur && makepkg -si
|
||||||
|
|
||||||
cd "$SCRIPT_DIR" || (error "failed to come back to working directory after installing pamac" && exit 1)
|
cd "$SCRIPT_DIR" || (error "failed to come back to working directory after installing pamac" && exit 1)
|
||||||
|
|
||||||
|
# idk why but the permissions is set like this
|
||||||
|
sudo install -g root -o root -m u=rwx,g=rx,o=rx ./etc/pamac.conf /etc/pamac.conf
|
||||||
}
|
}
|
||||||
|
|
||||||
setup_pavucontrol() {
|
setup_pavucontrol() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue