What is the proper way to install a package from the terminal using zypper?
daka@linux-0xkw:~> zypper in backintime
Root privileges are required for installing or uninstalling packages.
daka@linux-0xkw:~> su zypper in backintime
su: user zypper does not exist
daka@linux-0xkw:~> kdesu zypper in backintime
If 'backintime' is not a typo you can use command-not-found to lookup the package that contains it, like this:
linux-0xkw:/home/daka # zypper in backintime
Loading repository data...
Reading installed packages...
Resolving package dependencies...
The following 6 NEW packages are going to be installed:
backintime encfs libboost_serialization1_54_0 librlog5 python-notify sshfs
The following 2 recommended packages were automatically selected:
6 new packages to install.
Overall download size: 681.5 KiB. Already cached: 0 B After the operation,
additional 3.1 MiB will be used.
Continue? [y/n/? shows all options] (y): y
Thank you. How do you know when to use kdesudo or just sudo?
in my opinion you should only use sudo, kdesu is called by kde when root privileges are needed (for running yast or accessing an external partition in dolphin etc) I do believe that root should use as little GUI as possible.
kdesu not kdesudo is to start a gui app as root in a GUI
sudo, and or su are used for text/command line programs to run as root
sudo is temperate and only effects the following command(s) Also in openSUSE sudo is not a full root environment by default though that can be changed if desired.
su - (note the dash) gives you the full root environment. this starts a root shell and you are root until you exit the shell (ie close window or type exit)
si without dash is like sudo it is part root and part user environment. It so is a root shell but does not have all the paths set that root normally does. What not having full root environment means is that you must use full path names for commands that are in /sbin directory. Also some other environment variables may not be set as full root’s would.
There are other ways to become root. sometimes in a menu item that is to start as root you will see dbus-launch to start the program There are a couple of more even more obscure ways