8.4 KiB
- fix time issues
timedatectl set-ntp true
sudo systemctl enable --now systemd-timesyncd
- Removing packages
pamac --version
pamac --help, -h [action]
pamac search [options] <package(s)>
pamac list [options] <package(s)>
pamac info [options] <package(s)>
pamac install [options] <package(s)>
pamac reinstall [options] <package(s)>
pamac remove [options] [package(s)]
pamac checkupdates [options]
pamac update,upgrade [options]
pamac clone [options] <package(s)>
pamac build [options] [package(s)]
pamac clean [options]
yay -Sc : for clearing cache
List orphaned packages: `pamac list -o`
Remove orphaned packages: pamac remove -o
Another thing to do is clean up extra copies of packages you don't need:
pamac clean
I have pamac set up to keep the last 3 versions of each package, so this will only remove excess packages while maintaining a couple of versions back in case I need to downgrade. I like using this method instead as it will handle flatpacks as well as native packages.
Here's an example:
[Bester-PN50 ~]# pamac list -o
lib32-fluidsynth 2.1.7-1 multilib 476.6 kB
libgnome-games-support 1.8.0-1 extra 186.8 kB
[Bester-PN50 ~]# pamac remove -o
Preparing...
Checking dependencies...
To remove (5):
lib32-fluidsynth 2.1.7-1 multilib
lib32-portaudio 1:19.6.0-4 (Orphan Of: lib32-fluidsynth) multilib
lib32-sdl2 2.0.14-1 (Orphan Of: lib32-fluidsynth) multilib
lib32-libinstpatch 1.1.6-1 (Orphan Of: lib32-fluidsynth) multilib
libgnome-games-support 1.8.0-1 extra
Total removed size: 3.5 MB
Apply transaction ? [y/N] y
Removing lib32-fluidsynth (2.1.7-1)... [1/5]
Removing lib32-portaudio (1:19.6.0-4)... [2/5]
Removing libgnome-games-support (1.8.0-1)... [3/5]
Removing lib32-sdl2 (2.0.14-1)... [4/5]
Removing lib32-libinstpatch (1.1.6-1)... [5/5]
Running post-transaction hooks...
Arming ConditionNeedsUpdate... [1/1]
Transaction successfully finished.
[Bester-PN50 ~]# pamac clean
Number of versions of each package to keep in the cache: 3
To delete: 1 file (145.9 kB)
Clean cache ? [y/N] y
-
Vscodium
https://www.linuxcapable.com/how-to-install-vscodium-on-manjaro-linux/ -
vpns installation
yay -S protonvpn-gui
-
Symbolic links
https://linuxhint.com/create-symbolic-links-manjaro/
ln -s [path-of-target-file] [path-of-symlink-file]
ln -s linuxhint.txt symfile.txt
For verification of symbolic link
ls -l sym_dir
For full path sym links
You can turn relative paths into full paths using readlink -f foo. So you would do something like:
ln -s $(readlink -f $origlink) $newlink -
Building and installing packages from arch repos
https://wiki.archlinux.org/title/Arch_User_Repository
https://wiki.archlinux.org/title/MakepkgBy default build tools are not available so install them using
sudo pacman -S base-devel
It will install these packagesautoconf-2.71-4 automake-1.16.5-2 bison-3.8.2-6 debugedit-5.0-5 flex-2.6.4-5 gc-8.2.4-1 guile-3.0.9-1 m4-1.4.19-3 make-4.4.1-2 patch-2.7.6-10 pkgconf-1.8.1-1 base-devel-1-2To build a package, one must first create a PKGBUILD, or build script, as described in Creating packages. Existing scripts are available from the Arch build system (ABS) tree or the AUR. Once in possession of a PKGBUILD, change to the directory where it is saved and run the following command to build the package:
makepkg -
strawberry
-
nordvpn
Use this command
pamac install nordvpn-bin
==> Making package: nordvpn-bin 3.16.6-1 (Friday 20 October 2023 11:42:49 PM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading nordvpn_3.16.6_amd64.deb...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 32.6M 100 32.6M 0 0 3656k 0 0:00:09 0:00:09 --:--:-- 3811k
==> Validating source_x86_64 files with sha256sums...
nordvpn_3.16.6_amd64.deb ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
-> Extracting nordvpn_3.16.6_amd64.deb with bsdtar
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
-> Removing libtool files...
-> Purging unwanted files...
-> Removing static library files...
-> Stripping unneeded symbols from binaries and libraries...
-> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "nordvpn-bin"...
-> Generating .PKGINFO file...
-> Generating .BUILDINFO file...
-> Adding install file...
-> Generating .MTREE file...
-> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: nordvpn-bin 3.16.6-1 (Friday 20 October 2023 11:43:17 PM)
==> Cleaning up...
Checking keyring... [1/1]
Checking integrity... [1/1]
Loading packages files... [1/1]
Checking file conflicts... [1/1]
Checking available disk space... [1/1]
Installing nordvpn-bin (3.16.6-1)... [1/1]
:: In order to enable nordvpn you have to start the following service:
sudo systemctl enable --now nordvpnd
:: You have to add yourself to the nordvpn group:
sudo gpasswd -a USERNAME nordvpn
:: You then have to restart for the group to be created:
reboot
-
offline installation
from tar zst file do thissudo pacman -U ./app-name.tar.zstsudo pacman -Sw stacer
pamac install -w stacer: not for AUR -
nvm installation
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
nvm ls-remote: for getting list of available versions which can be downloaded
nvm list: for getting list of downloaded versions of node
nvm install 14.0.0: for downloading and installing version 14.0.0
nvm use 14.0.0: switching to version 14.0.0
nvm use system: switching to version when nodejs first installed
-
Checking for missing dependencies You can check if you have missing files from installed packages, e.g.:
$
pacman -Qk qemu-system-x86qemu-system-x86: 13 total files, 0 missing files -
cloudflare-warp installation install aur package ie cloudflare-warp-bin then use
warp-cliif facing error ie daemon not running then use this command:sudo systemctl enable --now warp-svc.serviceThen https://blog.cloudflare.com/announcing-warp-for-linux-and-proxy-mode/~$ warp-cli register Success ~$ warp-cli connect -
Issues in cd If it says cd has too many arguments then wrap them in double quotes
cd "$PATH" -
Forcing installation no matter if dependency breaks Use
--nodepsflag withpacman -S package_name -
history expansion issue When entering command it may be possible that some characters are there that needs to be escaped to avoid undesired results one such is
!which is for history expansion. so make sure to escape it with\!.