Author Topic: Maintaining Manjaro Linux  (Read 3711 times)

0 Members and 1 Guest are viewing this topic.

Offline Fatboy

  • Sr. Mitglied
  • ****
  • Posts: 323
  • "Spiral out. Keep going..."
  • Branch: stable
  • Desktop: Xfce, KDE plasma 5
  • GPU Card: nVidia GeForce 210
  • GPU driver: 340.xx
  • Kernel: Manjaro Kernel 4.4 LTS
  • Skill: Intermediate
Maintaining Manjaro Linux
« on: 25. March 2016, 03:07:20 »
Alright folks, this is not ideal, but it's a way of keeping your Manjaro install clean and slim:

#Remember to keep the latest 3 packages (and remove the rest)

[user@terminal]$ paccache -rvk3


Remember to keep your mirrors up to speed:

source (https://wiki.manjaro.org/index.php?title=Rankmirrors_to_Set_the_Fastest_Download_Server)

in short:

sudo pacman-mirrors -g

and then:

sudo pacman -Syy

Also, remember to tweak your log files:

https://wiki.manjaro.org/index.php?title=Limit_the_size_of_.log_files_%26_the_journal

In short:

Go to:
/etc/systemd/journald.conf

Uncomment (remove the # from the beginning of the line) the following line & add the size limit that you want. I set mine to 50MB like this:
SystemMaxUse=50M
"I'm reaching for the random or whatever will bewilder me. Whatever will bewilder me."

Offline excalibur1234

  • Global Moderator
  • *****
  • Posts: 2508
  • Branch: unstable
  • Desktop: net-minimal + LXQt
  • GPU driver: video-nouveau
  • Kernel: 4.6
  • Skill: Intermediate
Re: Maintaining Manjaro Linux
« Reply #1 on: 25. March 2016, 11:29:33 »
here are some more tips from me (i have take them from here):


"sudo pacman-mirrors -g && sudo pacman -Syy"
This command tests your connection to all available Manjaro repository mirrors/servers. The mirror with the best connection is automatically chosen for you. Additionally, the latest package database is downloaded from the chosen Manjaro repository mirror.
If you want to speed up this command: Only test your connection quality to Manjaro mirrors/servers near you. Example: You have noticed the pings to German and French mirrors are always best for you. Then, you can run: "sudo pacman-mirrors -g -c Germany,France"

"yaourt -Qdt"
This option lists all orphaned packages on your system. Orphaned packages are old dependencies (packages not explicitly installed by you), which were never removed from your system.
Answer with "y" to remove all listed orphaned packages. Simply pressing [ENTER] will not remove the listed orphaned packages.

"paccache -ruvk0
 paccache -rvk2"
By default Pacman uses this cache directory for downloading packages: /var/cache/pacman/pkg/... . No cached packages get deleted automatically. This enables you to DOWNGRADE PACKAGES, which are broken, without a working internet connection. The package cache of an old and actively used Manjaro installation can become quite large. Clean it to regain space on your root partition.
The first command removes all packages from cache, which are not installed (anymore) on your system. The second command removes all old packages from your cache except the 2 latest versions: The version you have currently installed on your system and the previous version.

"sudo pacman-optimize" (only when Manjaro is installed on a HDD)
This command effectively defragments your Pacman database.
On traditional hard drives (HDD) this command can speed up all actions related to Pacman.
Attention: It is NOT recommended to use this command on modern solid state hard drives (SSD)!


"pacman -Qem"
This command lists all installed packages, which are from the AUR or which were manually installed.

"yaourt -Syua && yaourt -Syua --devel --noconfirm"
The Arch User Repository (AUR) is a repository of (mostly) PKGBUILD files. Everybody can create such a PKGBUILD file and upload it to the AUR. A PKGBUILD file contains simple and human readable instructions like where to download the source code from, what dependencies are needed, where to copy files for installation, etc. Yaourt is a so called AUR Helper: It can interpret PKGBUILD files and download the source code, install dependencies, build files on your system, and copy these files to the right location (a.k.a. installing a program).
By checking a PKGBUILD file (and .INSTALL file) you can make sure the source code is loaded from an official download server, no harmful dependencies get installed, and the installation instructions do not contain harmful code.
A lot of PKGBUILD files contain variables (e.g. program version) in download addresses; this makes them download always the latest source code (e.g. from Github). Some PKGBUILD files contain no variables: These PKGBUILD files need to be changed manually every time a new program version is released.
The first command of FORCE UPDATE AUR does the same as UPDATE AUR: Only AUR packages with updated/changed PKGBUILD files will get updated. This gives you the chance to check these updated/changed PKGBUILD files.
The second command of FORCE UPDATE AUR forces a reinstall of ALL your AUR packages. The "--noconfirm" flag is used in a secure way, because no PKGBUILD files have changed since the first command got executed.
Attention: This might take a long time!
Attention: By default, after every 15min this command will pause and ask again for your password.
Need more information? Search here:   Manjaro Forum   |   Manjaro Wiki   |   Arch Wiki

Offline Fatboy

  • Sr. Mitglied
  • ****
  • Posts: 323
  • "Spiral out. Keep going..."
  • Branch: stable
  • Desktop: Xfce, KDE plasma 5
  • GPU Card: nVidia GeForce 210
  • GPU driver: 340.xx
  • Kernel: Manjaro Kernel 4.4 LTS
  • Skill: Intermediate
Re: Maintaining Manjaro Linux
« Reply #2 on: 25. March 2016, 12:01:54 »
Thanks excalibur1234 :)
"I'm reaching for the random or whatever will bewilder me. Whatever will bewilder me."

Offline bobwad

  • Neuling
  • *
  • Posts: 5
  • Branch: Stable
  • Desktop: KDE
  • GPU Card: ATI
  • GPU driver: Free
  • Skill: Intermediate
Re: Maintaining Manjaro Linux
« Reply #3 on: 25. March 2016, 12:48:12 »
Many thanks to you both (Fatboy and excalibur1234) for these very helpful tips.

Offline cacciatore

  • Jr. Mitglied
  • **
  • Posts: 60
  • I'm new. Be nice!
  • Branch: Stable
  • Desktop: KDE (desktop) Gnome (laptop)
  • GPU Card: AMD 7870 TahitiLE (desktop) AMD A4 6210 APU R5 (laptop)
  • GPU driver: proprietary (desktop) opensource (laptop)
  • Kernel: linux-44
  • Skill: Novice
Re: Maintaining Manjaro Linux
« Reply #4 on: 25. March 2016, 20:08:43 »
Thank you guys. Ita always good to have some threads with compact tips.

Offline khalismur

  • Neuling
  • *
  • Posts: 23
  • Branch: stable
  • Desktop: xfce
  • GPU Card: nVidia 840M
  • GPU driver: non-free
  • Kernel: linux44
  • Skill: Novice
Re: Maintaining Manjaro Linux
« Reply #5 on: 01. April 2016, 14:46:32 »
Thanks!

Offline Loup

  • Vollwertiges Mitglied
  • ***
  • Posts: 238
  • Desktop: xfce
  • GPU Card: nvidia GeForce GT 520
  • GPU driver: non-free driver
  • Kernel: 4.4 x64
  • Skill: Novice
Re: Maintaining Manjaro Linux
« Reply #6 on: 07. April 2016, 23:31:38 »
Thank's guys,

Also, to keep ext4 on spinner hdd ( not required for sdd ) install snappy ...

sudo e4defrag -c / /dev/sdX to verify defragmentation level
or sudo e4defrag / to defrag everything


Offline zajonara

  • Neuling
  • *
  • Posts: 12
  • Knowledge is my need.
  • Desktop: Xfce 4.12
  • GPU Card: ASUS nVidia GeForce 660 Ti
  • GPU driver: non-free
  • Kernel: 4.4.6-1-MANJARO
  • Skill: Novice
Re: Maintaining Manjaro Linux
« Reply #7 on: 26. April 2016, 00:46:10 »


Correct?
"If you are receptive and humble, mathematics will lead you by the hand." -- Dirac, Paul

Offline badbodh

  • Held Mitglied
  • *****
  • Posts: 923
  • Windows assumes I'm stupid, Linux proves it.
  • Branch: Testing
  • Desktop: Xfce, i3
  • GPU Card: Intel Mobile 4 Series
  • Kernel: linux41 64-bit
  • Skill: Intermediate
Re: Maintaining Manjaro Linux
« Reply #8 on: 26. April 2016, 05:35:20 »
Yep.
You can't feel the love till it hurts a little. Go rolling, go bleeding-edge !

Offline zajonara

  • Neuling
  • *
  • Posts: 12
  • Knowledge is my need.
  • Desktop: Xfce 4.12
  • GPU Card: ASUS nVidia GeForce 660 Ti
  • GPU driver: non-free
  • Kernel: 4.4.6-1-MANJARO
  • Skill: Novice
Re: Maintaining Manjaro Linux
« Reply #9 on: 26. April 2016, 06:41:57 »
Thanks!
"If you are receptive and humble, mathematics will lead you by the hand." -- Dirac, Paul

Offline Fatboy

  • Sr. Mitglied
  • ****
  • Posts: 323
  • "Spiral out. Keep going..."
  • Branch: stable
  • Desktop: Xfce, KDE plasma 5
  • GPU Card: nVidia GeForce 210
  • GPU driver: 340.xx
  • Kernel: Manjaro Kernel 4.4 LTS
  • Skill: Intermediate
Re: Maintaining Manjaro Linux
« Reply #10 on: 09. May 2016, 10:18:16 »
Remember that for "normal update" you execute "sudo pacman -Syu" in a terminal.
The mirror syncing etc are only when your updates are slow and your repository lists are outdated (skipped a few updates)
"I'm reaching for the random or whatever will bewilder me. Whatever will bewilder me."