I am looking for a specific command in the terminal.
a **history zypper list **command in some sort of sense
when uninstalling something via zypper rm -u “younameit”
It erases all dependencies as well.
just out of curiosity…
In case I forgot how many packages(as dependencies) were installed at that time,
or the suggested dependencies seem very odd…
is there a command for zypper to list what was installed back in time?
I looked into the logs in /var/log/zypper/history and var/log/zypper.log
but I didn´t hit paydirt
There is zypper-log command (which is recommended by zypper and so should normally be installed) which parses /var/log/zypper.log* and shows command history.
I wonder about that. All my openSUSE supplied aliases were in .bashrc when I installed Tumbleweed, so I’ve been putting my own there. Is the preferred location documented somewhere?
I am not sure where I saw it documented. I know I found out about it sometime somewhere and I have my aliases there already for a long time and to me it seems to be a good way to have them together in a separate and easy to memorize place. Of course your way works also. Maybe personal preference.
But you are right, this is not a very convincing way to present this as “best practice”.
What do you mean with that. Normally a package update does not uninstall anything., neither does it really install something new. It probably just overwrites some of the files of the package.
Take another look at Gene’s suggestion. There’s commands followed by which packages were installed/removed. It won’t tell in particular which package brought a new dependency, zypper nor YaST don’t show this either.
You’re probably talking about Leap. In TW an updated package can add a conflict to an existing package, so it will be removed. And require new dependencies, so they are installed.
I see (I considered that that could be the case in Leap also, but reckoned it as remote). But even then I doubt you can see from those uninstalls and installs that they were due to the update of a particular package (except of course when you only update one package at a time).
But I better leave the thread considering that I am not using TW, that I assume that TW (almost) never does update, but always upgrade. And that I do not really understand the goal of the OP. I just did not understand his statement and in fact asked for clarification.
exactly this answer was what I was looking for.
but in my case even the uninstalled packages via zypper are shown in YAST…
I uninstalled bbswitch yesterday. It shows up there…
maybe I misunderstood the bold written sentence,
what do you mean :)?
I wonder,
there is no option by any chance for “doing” your commands without having inserted alias to the ~/.bashrc file?
So in other words as a “direct” command in terminal?
And as the zypper command and YaST > Software > <several menu items>, are both user interfaces to the libzypp library, you can mix working with zypper and YaST > Software and the zypper database and logs will have all actions regardless of what interface you used.
I’ve been using [SuSE] openSuSE since 200? on all my primary systems and have never had a dot alias file that I can recall and is not on my current 15.4 installations, for either norm users or root. : (
@Gene_S, your ‘zypp-hist’ alias is Very nice. Thanks.