Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: I uninstalled yast2 accidenttly

  1. #11
    Join Date
    Aug 2017
    Location
    Montréal. Canada
    Posts
    36

    Default Re: I uninstalled yast2 accidenttly

    Quote Originally Posted by jetchisel View Post
    Hi,

    The file
    Code:
    /var/log/zypp/history
    Which is owned by the root user, might be a good start if you want to look for the packages that has been removed.
    (Just replace the remove with install to find out which packages got installed.)

    NOTE: The code below assumes that you're using the default shell which is bash.

    For example If you want to look for the packages that has been remove today, a filter can be used (pattern matching)
    Code:
    grep "$(date -d'now' '+%F').*|remove" /var/log/zypp/history
    From the last three days.

    Code:
    grep "$(date -d'3days ago' '+%F').*|remove" /var/log/zypp/history
    From last month.
    Code:
    grep "$(date -d'last month' '+%F').*|remove" /var/log/zypp/history
    Since GNU date is being used in the above code, I suggest you look at the info pages for more info about some examples on which words/syntax is accepted when searching for date.

    Code:
    info date
    It's a "GNU thing" so don't ask me why info pages and not man pages.

    When searching for just the package name which has been removed. Like for example you want to search for the word yast ANY WHERE in the package name.
    (Just replace the remove with install to do the opposite.)

    Code:
    grep ".*|remove[[:space:]]*|.*yast" /var/log/zypp/history

    Note that grep is using BRE by default unless you tell it to use ERE but that is another story.
    See
    Code:
    man 7 regex
    Code:
    grep --help
    Code:
    man grep
    for more info about BRE, and btw if I'm not mistaken Leap 15.0 does not come with the Linux man pages so you might need to install the package
    Code:
    man-pages
    and
    Code:
    man-pages-posix
    I will keep this one in mind the next time in update go south.
    Open-suse Leap 15
    Cinnamon

  2. #12
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    1,999

    Default Re: I uninstalled yast2 accidenttly

    Quote Originally Posted by Asimov View Post
    But i have the feeling that my menu is set on a broken link. Can you tell me the directory of the binary ?
    In your initial post you mention “QStandardPaths:” -- therefore I'm assuming that, your user GUI is KDE …

    For the case of KDE Plasma 5, the menu command for YaST is “/usr/bin/xdg-su -c /sbin/yast2”.

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •