Author Topic: Get Manjaro current version  (Read 921 times)

0 Members and 1 Guest are viewing this topic.

Offline chronix

  • Neuling
  • *
  • Posts: 6
  • I'm new. Be nice!
  • Desktop: KDE
  • GPU Card: Intel+AMD hybrid
  • Kernel: linux44
  • Skill: Intermediate
Get Manjaro current version
« on: 07. May 2016, 11:17:36 »
Now I know Manjaro is pseudo rolling release, but I believe the do keep track of the updates they release. I have manjaro installed on my desktop and on my laptop. How can I compare these two installations through a version number of something?

Eg. Like recently we had the 26th update, and lets say I updated my laptop so its like on 16.04.26 bt my desktop is on 16.04.25
Is there something like this in manjaro?

Offline philm

  • Core Team
  • *****
  • Posts: 10671
    • Manjaro Linux
  • Branch: Unstable
  • Desktop: XFCE
  • GPU Card: Geforce GTX 650
  • GPU driver: non-free
  • Kernel: Maintainer - so all ;)
  • Skill: Guru
Re: Get Manjaro current version
« Reply #1 on: 07. May 2016, 11:29:52 »
Hi there,

each release comes with a Package list. Simply get one of those and check for a package version you use on your PC. For example the kernel:

Code: [Select]
[phil@manjaro ~]$ pacman -Ss linux41
core/linux41 4.1.23-1 [installed]
    The Linux41 kernel and modules
core/linux41-headers 4.1.23-1 [installed]
    Header files and scripts for building modules for Linux41 kernel

That signals that you have the latest version installed.

You can always check for update with: pacman -Syu. If an update is available it most likely will look like this:

Code: [Select]
[phil@manjaro ~]$ sudo pacman -Syu
:: Synchronizing package databases...
 core                     135.8 KiB   991K/s 00:00 [######################] 100%
 extra                   1935.7 KiB  3.17M/s 00:01 [######################] 100%
 community                  3.7 MiB  3.58M/s 00:01 [######################] 100%
 multilib                 186.9 KiB  1080K/s 00:00 [######################] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (55) binutils-2.26-4  bison-3.0.4-2  exo-0.10.7-2  flex-2.6.0-3
              gcc-libs-multilib-6.1.1-1  gcc-multilib-6.1.1-1
              glib-networking-2.48.1-1  glibc-2.23-2  gmp-6.1.0-4
              gnupg-2.1.12-1  harfbuzz-1.2.7-1  harfbuzz-icu-1.2.7-1
              lib32-gcc-libs-6.1.1-1  lib32-glibc-2.23-2  libassuan-2.4.2-2
              libmpc-1.0.3-2  libpurple-2.10.12-2  libreoffice-still-5.0.6-1
              libtool-2.4.6-5  libxfce4ui-4.12.1-2  linux-api-headers-4.5.2-1
              make-4.1-4  mousepad-0.4.0-2  mpfr-3.1.4.p1-1  orage-4.12.1-3
              pidgin-2.10.12-2  pinentry-0.9.7-2  skype-4.3.0.37-7
              thunar-archive-plugin-0.3.1-6  thunar-volman-0.8.1-2
              xfburn-0.5.4-3  xfce4-appfinder-4.12.0-4
              xfce4-battery-plugin-1.0.5-5  xfce4-clipman-plugin-1.2.6-3
              xfce4-cpufreq-plugin-1.1.2-2  xfce4-cpugraph-plugin-1.0.5-4
              xfce4-dict-0.7.1-2  xfce4-fsguard-plugin-1.0.2-5
              xfce4-mailwatch-plugin-1.2.0-7  xfce4-mixer-4.11.0-3
              xfce4-mount-plugin-0.6.7-4  xfce4-netload-plugin-1.2.4-3
              xfce4-notes-plugin-1.8.1-2  xfce4-notifyd-0.2.4-3
              xfce4-panel-4.12.0-2  xfce4-power-manager-1.4.4-2
              xfce4-screenshooter-1.8.2-3  xfce4-sensors-plugin-1.2.6-3
              xfce4-settings-4.12.0-4  xfce4-terminal-0.6.3-3
              xfce4-time-out-plugin-1.0.2-2  xfce4-timer-plugin-1.6.0-4
              xfce4-weather-plugin-0.8.7-1  xfdesktop-4.12.3-2  xfwm4-4.12.3-2

Total Download Size:   197.12 MiB
Total Installed Size:  814.92 MiB
Net Upgrade Size:       26.89 MiB

:: Proceed with installation? [Y/n]

It also depends on which branch you're are. Stable has a snapshot of 26.04, Testing is on 06.05 and Unstable at 07.05.
We only change the version for the "stable install medias" but don't keep track on the rolling updates. If you want a full rolling you can switch to unstable or testing. Stable we have update packages which are mostly tested thru and thru.

More about keeping your system current you can find here:

https://wiki.manjaro.org/index.php?title=Repositories_and_Servers
https://wiki.manjaro.org/index.php?title=Pacman
https://wiki.manjaro.org/index.php?title=Graphical_Software_Managers

And last but not least, use a current not outdated server to get the latest updates.

Offline chronix

  • Neuling
  • *
  • Posts: 6
  • I'm new. Be nice!
  • Desktop: KDE
  • GPU Card: Intel+AMD hybrid
  • Kernel: linux44
  • Skill: Intermediate
Re: Get Manjaro current version
« Reply #2 on: 07. May 2016, 11:40:55 »
Ok the whole point of my question is that, I'm trying (not really trying, just starting to think) to write a program, that can help 2 or more Manjaro installs connected to a local network to share updates, now i know its kinda pointless to lot of people, bt i have slow network like really slow, so it'd be good if my 2 manjaro installations could share updates back and forth.

Offline philm

  • Core Team
  • *****
  • Posts: 10671
    • Manjaro Linux
  • Branch: Unstable
  • Desktop: XFCE
  • GPU Card: Geforce GTX 650
  • GPU driver: non-free
  • Kernel: Maintainer - so all ;)
  • Skill: Guru
Re: Get Manjaro current version
« Reply #3 on: 07. May 2016, 12:10:18 »
That makes totally sense. You can download from one machine into your cache folder. Use that folder and create a local repository database. With this you can give pacman the database and install the updates from there:

Code: [Select]
[phil@manjaro pkg]$ cd /var/cache/pacman/pkg
[phil@manjaro pkg]$ su
Password:
[root@manjaro pkg]# repo-add -R pacman-cache.db.tar.gz *.pkg.tar.xz
==> Adding package 'pacman-5.0.1-3-i686.pkg.tar.xz'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package 'pacman-5.0.1-3-x86_64.pkg.tar.xz'
==> WARNING: An entry for 'pacman-5.0.1-3' already existed
  -> Computing checksums...
  -> Removing existing entry 'pacman-5.0.1-3'...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Adding package 'pamac-4.0-1-x86_64.pkg.tar.xz'
  -> Computing checksums...
  -> Creating 'desc' db entry...
  -> Creating 'files' db entry...
==> Creating updated database file 'pacman-cache.db.tar.gz'
[root@manjaro pkg]# ls pacman-cache.db*
pacman-cache.db  pacman-cache.db.tar.gz

Then you have to add this local repo on top of your remote repos in your /etc/pacman.conf:

Code: [Select]
[pacman-cache]
Server = file:///var/cache/pacman/pkg

https://www.archlinux.org/pacman/pacman.conf.5.html#_using_your_own_repository
https://www.archlinux.org/pacman/pacman.conf.5.html#_example

Offline chronix

  • Neuling
  • *
  • Posts: 6
  • I'm new. Be nice!
  • Desktop: KDE
  • GPU Card: Intel+AMD hybrid
  • Kernel: linux44
  • Skill: Intermediate
Re: Get Manjaro current version
« Reply #4 on: 07. May 2016, 12:22:03 »
Yeah i know that I can do it manually, this is wat I've been doing lately. ;D I'm trying to automate it. I just want my systems to do it by themselves.  8)

Offline Chrysostomus

  • Maintainer
  • ***
  • Posts: 1634
  • Neckbeards are cool
    • Git
  • Branch: unstable
  • Desktop: Gnome, bspwm
  • GPU Card: Intel HD4000
  • GPU driver: free
  • Kernel: linux44-x64
  • Skill: Intermediate
Re: Get Manjaro current version
« Reply #5 on: 07. May 2016, 12:32:21 »

Offline chronix

  • Neuling
  • *
  • Posts: 6
  • I'm new. Be nice!
  • Desktop: KDE
  • GPU Card: Intel+AMD hybrid
  • Kernel: linux44
  • Skill: Intermediate
Re: Get Manjaro current version
« Reply #6 on: 07. May 2016, 12:47:07 »
I think there are already that kind of solutions. See here: https://wiki.archlinux.org/index.php/Pacman/Tips_and_tricks#Network_shared_pacman_cache

Also,see especially this:
https://wiki.archlinux.org/index.php/Pacserve

Pacserve is what i was looking for, i guess. Thanks