how do i install programs from terminal?

like in ubuntu i typed on the terminal “sudo apt-get install xchat” and i got xchat

is there something like ubuntu to install xchat from terminal?

what are the options to install programs?

Type xchat in the terminal and be enlightened :wink:

If xchat is not already installed, you can use zypper (CLI package manager) to install it.

zypper in xchat

thank you both :slight_smile:
now i have 2 more questions
if i to remove xchat (just for knowing) how can i remove programs?

and the second question is:
when i installed opensuse at the installation i choose KDE desktop, how can i change it to gnome?

Using zypper:

zypper rm <name_of_package>

If you search the wiki there is a good page for zypper and all the commands and such like. But it is quite intuitive zypper remove program or rm for short.

As for the other I find the best is to use yast and use the patterns. The same can be achieved using cli by using zypper in -t pattern where pattern is the pattern zypper -t patterns will show them all.

Just install the GNOME pattern and at the login screen choose GNOME as your session type. No need to remove KDE, they can coexist in the filesystem.

i installed gnome from terminal, i typed sudo zypper install gnome-session, and i restart my computer and it just goes to the KDE desktop interface… what do i need to set gnome interface?

Mmm you went wrong, you really did rely on dependency resolution and rergardless of what the die hards say I’m not sure any package manager does it perfectly.

You needed to go for a pattern why I suggested yast, but as you insist but be warned I’m taking no prisoners this will be full blown gnome.

sudo zypper in -t pattern gnome

Edit
fixed command added in

I don’t know if it is “wrong” but I run yast to manage software (and everything else that yast manages). I suppose it takes a bit longer but the “graphicalness” makes things a bit more familiar.

There’s absolutely nothing wrong with that. YaST is just a graphical front-end for zypper after all.

I personally use both; the zypper command is easier to update the whole system in one go and manually refresh repositories, while I find the GUI easier to browse and search for packages. That’s just my preference though; you could do either task with only one or the other tool.

YaST is just a graphical front-end for zypper after all.

Hate to say this,but software management & online update are the front-end’s to zypper,YaST - Yet another Set up Tool,to give it it’s full name, is the means for all the tools to reside in one convenient place.See Here for further info :wink:

Andy

ok i installed it, but how can i switch now to gnome interface?

log out & at the login screen, look to the bottom-left of the screen & you will see sessions.click on it & select Gnome from there

Andy

thanks thanks thanks guys! works greate!
defenetly opsensuse will be at my new newlaptop soon
i go get some drink to suse yayy and my release from army haha :slight_smile:

thanks again for the help

And when you installed Gnome you must disable automatic logon, else it will automatic logon into what it was: KDE. On the logon page there is a menu where you can choose your DE for the next logon.