Can I direct update from 13.5.3 to latest (13.6.2)

Can I direct update from 13.5.3 to latest (13.6.2) ?

I just checked Upgrading GitLab | GitLab the requirements:

Ruby 2.7.2 is required. GitLab will not start with Ruby 2.6.6 or older versions.

The required Git version is Git v2.29 or higher.

How can I check this versions? I tried to discover the versions and this was the output:

root@gitlabcetest:~# git --version
git version 2.25.1

And ruby:

root@gitlabcetest:~# ruby -v

Command 'ruby' not found, but can be installed with:

snap install ruby  # version 2.7.2, or
apt  install ruby  # version 1:2.7+1

See 'snap info ruby' for additional versions.

If I install the debian packages, this dependencies will automatically updated?

You don’t need to install ruby. Since you are using the omnibus package, everything is inside it including ruby.

/opt/gitlab/embedded/bin/ruby -v
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-linux]

You can use that command above to check ruby version.