OSL Commands

less than 1 minute read

Description:

Upon installing OpenSuse (OSL => Open Suse Linux) and reading the beginners guide at opensuse-guide, I found a list of new zypper commands:

To Resolve:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
   # Lists currently installed packages (without version)
   rpmqpack

   # Lists currently installed packages (with full version and architecture)
   rpm -qa –qf '%{name}-%{version}-%{release}.%{arch}n'

   # Gives you an OBS URL to the exact sources for the package PACKAGE. You can, for instance, check them out with osc co DISTURL
   rpm -q –qf "%{DISTURL}n" PACKAGE

   # List all packages explicitly installed
   awk -F| '$6 && $2 == "install" {print $3}' /var/log/zypp/history

   # Runs zypper shell, no need to type zypper for each command
   zypper sh

   # Simulate (Dry run) an upgrade on all active repositories
   zypper -v dup -D 

   # Makes debian users feel at home
   zypper moo 

   # Journald is replacing the old logging technologies in openSUSE (at least for most common cases). The two most important commands you need to know:
   # The old "cat /var/log/messages"
   journalctl 

   # The old "tail -f /var/log/messages"
   journalctl -f

Comments