Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: How can I remove old kernal packages with zypper?

  1. #1
    JtWdyP NNTP User

    Default How can I remove old kernal packages with zypper?


    I could be wrong. But I think I've got way too many kernel versions
    installed...

    Code:
    /home/filEshuttlE
    UnderTree=-> rpm -qa | grep -i kernel
    kernel-firmware-20140903git-2.4.noarch
    kernel-devel-3.11.10-29.1.noarch
    kernel-desktop-devel-3.11.10-11.1.x86_64
    kernel-default-devel-3.16.6-2.1.x86_64
    kernel-desktop-3.16.7-21.1.x86_64
    kernel-default-devel-3.11.10-29.1.x86_64
    kernel-desktop-devel-3.16.7-21.1.x86_64
    kernel-default-3.7.10-1.32.1.x86_64
    kernel-default-devel-3.7.10-1.32.1.x86_64
    kernel-desktop-3.11.10-29.1.x86_64
    kernel-default-3.16.7-21.1.x86_64
    kernel-desktop-3.7.10-1.32.1.x86_64
    kernel-devel-3.16.6-2.1.noarch
    texlive-l3kernel-2013.84.svn_4469svn29409-16.1.7.noarch
    kernel-default-devel-3.11.10-11.1.x86_64
    kernel-default-3.11.10-29.1.x86_64
    texlive-l3kernel-doc-2013.84.svn_4469svn29409-16.1.7.noarch
    kernel-default-3.11.10-11.1.x86_64
    kernel-devel-3.11.10-11.1.noarch
    kernel-default-devel-3.16.7-21.1.x86_64
    kernel-macros-3.16.6-2.1.noarch
    kernel-devel-3.16.7-21.1.noarch
    kernel-devel-3.7.10-1.32.1.noarch
    kernel-desktop-devel-3.11.10-29.1.x86_64
    kernel-desktop-devel-3.16.6-2.1.x86_64
    kernel-desktop-3.11.10-11.1.x86_64
    kernel-desktop-3.16.6-2.1.x86_64
    kernel-desktop-devel-3.7.10-1.32.1.x86_64
    kernel-default-3.16.6-2.1.x86_64
    /home/filEshuttlE
    UnderTree=->

    I Did a web search found a relevant thread where 1 such kernel was removed
    with yast.

    https://forums.opensuse.org/showthre...45#post2541945

    Quote Originally Posted by nrickert View Post
    I had previously searched for "kernel" in Yast software manager, and it showed 3.7.10. However, after seeing that "rpm" output, I clicked the "versions" button in software manager, and it showed both 3.7.9 and 3.7.10.
    I deleted 3.7.9 from there (from the version list).
    I'd really rather learn to do this with zipper. (It's so much easier to
    leave myself crib notes on how to do something again, when I have a CLI
    solution...

    But as much as I detest GUI software managers, I tried to follow the above process.

    But the warnings I got made me nervous.



    Am I reading this right in that all of the packages it warns about the
    "deinstallation" of, are kernel version specific, and therefore are
    pointless to keep if I'm flushing the said kernel version anyway?

    I mean for example, the deinstallation of the nvidia gfxG02 drivers related to the
    kernel-default-3.7.10-1.32.1.x86_64 wouldn't have any affect on the
    installed nvidia gfxG02 driver for the installed kernel-default-3.16.7-21.1.x86_64

    RIGHT???

    So I could safely check all those #1 choice boxes and continue... Right?

    And about zypper, I'm sure that if I knew how to tell zypper to do this I'd
    have to answer similar warnings. But I'd still be more comfortable with the
    process. So if anybody knows how to deinstall old kernel versions with
    zypper, please do tell...

    Thanks!

    --
    JtWdyP


  2. #2
    JtWdyP NNTP User

    Default Re: How can I remove old kernal packages with zypper?


    It would appear that on Aug 4, JtWdyP did say:

    -snipped. . . . . . . . . .stuff

    > But as much as I detest GUI software managers, I tried to follow the above process.
    >
    > But the warnings I got made me nervous.
    >
    >


    -snipped. . . . . . . . . .stuff

    But it seems that on the http side of the house, the above url tag failed
    to display the tinypic url at all. Don't have a clue why. But incase
    someone using the http gateway wants to figure out what I'm talking about
    here's the plain text version...

    http://i62.tinypic.com/11tlic9.png

    --
    JtWdyP


  3. #3
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    4,310

    Default AW: How can I remove old kernal packages with zypper?

    Code:
    zypper rm Name-Version
    f.e.:
    Old Kernel from openSUSE 13.1:
    Code:
    zypper rm kernel-default-3.7.10-1.32.1
    But do not break any dependency!

  4. #4
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: How can I remove old kernal packages with zypper?

    On 2015-08-04 07:36, JtWdyP wrote:


    > But it seems that on the http side of the house, the above url tag failed
    > to display the tinypic url at all. Don't have a clue why.


    Because it is a web page, not a png image. Let's try this way:



    --
    Cheers / Saludos,

    Carlos E. R.

    (from 13.1 x86_64 "Bottle" (Minas Tirith))

  5. #5
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: How can I remove old kernal packages with zypper?

    On 2015-08-04 12:34, Carlos E. R. wrote:
    > On 2015-08-04 07:36, JtWdyP wrote:
    >
    >
    >> But it seems that on the http side of the house, the above url tag failed
    >> to display the tinypic url at all. Don't have a clue why.

    >
    > Because it is a web page, not a png image. Let's try this way:



    Actually, both displayed.


    --
    Cheers / Saludos,

    Carlos E. R.

    (from 13.1 x86_64 "Bottle" (Minas Tirith))

  6. #6
    JtWdyP NNTP User

    Default Re: How can I remove old kernal packages with zypper?


    It would appear that on Aug 4, Sauerland did say:

    > Newsgroups: opensuse.org.help.applications
    > Message-ID: <Sauerland.713600@no-mx.forums.microfocus.com>
    > From: Sauerland <Sauerland@no-mx.forums.microfocus.com>
    > Date: Tue, 04 Aug 2015 06:06:02 GMT
    > Subject: Re: How can I remove old kernal packages with zypper?
    >
    >
    > Code:
    > --------------------
    > zypper rm Name-Version
    > --------------------
    >
    > f.e.:
    > Old Kernel from openSUSE 13.1:
    >
    > Code:
    > --------------------
    > zypper rm kernel-default-3.7.10-1.32.1
    > --------------------
    >
    > But do not break any dependency!


    Thank you!

    I might have figured that out, except I couldn't figgure out how
    to get zypper to display the installed kernel versions...

    I'd tried the following:
    Code:
    ~
    UnderTree=-> zypper se kernel |grep ^i
    i | kernel-default                 | The Standard Kernel                                     | package
    i | kernel-default-devel           | Development files necessary for building kernel modules | package
    i | kernel-desktop                 | Kernel optimized for the desktop                        | package
    i | kernel-desktop-devel           | Development files necessary for building kernel modules | package
    i | kernel-devel                   | Development files needed for building kernel modules    | package
    i | kernel-firmware                | Linux kernel firmware files                             | package
    i | kernel-macros                  | RPM macros for building Kernel Module Packages          | package
    i | texlive-l3kernel               | LaTeX3 programming conventions                          | package
    i | texlive-l3kernel-doc           | Documentation for texlive-l3kernel                      | package
    ~
    UnderTree=->
    And once I discovered how to extract the installed kernel list with:
    Code:
    rpm -qa | grep -i kernel
    I pasted a very old kernel from it's output into this:
    Code:
    ~
    UnderTree=-> zypper se kernel-default-3.7.10-1.32.1.x86_64
    Loading repository data...
    Reading installed packages...
    No packages found.
    ~
    UnderTree=->
    Then, using your post as a guide, I truncated the above to this:
    Code:
    ~
    UnderTree=-> zypper se kernel-default-3.7.10-1.32.1
    Loading repository data...
    Reading installed packages...
    No packages found.
    ~
    UnderTree=->
    But even though it makes no sense to me that zypper could uninstall
    something it can't even find, I tried the actual remove command:
    Code:
    ~
    UnderTree=-> zypper rm kernel-default-3.7.10-1.32.1
    Loading repository data...
    Reading installed packages...
    Resolving package dependencies...
    
    The following 5 packages are going to be REMOVED:
    kernel-default-3.7.10-1.32.1 ndiswrapper-kmp-default-1.57.99_k3.7.10_1.11-5.4.3
    nvidia-gfxG02-kmp-default-304.119_k3.7.10_1.1-30.1
    nvidia-gfxG02-kmp-default-304.119_k3.7.10_1.1-33.1 vmware-guest-kmp-default
    
    5 packages to remove.
    After the operation, 220.6 MiB will be freed.
    Continue? [y/n/? shows all options] (y):
    I note that zypper wants to remove the same dependant packages that yast
    wanted to. But unlike yast it's not listing options that include breaking
    things... I'm still having to presume that I understand that removing
    the packages like "nvidia-gfxG02-kmp-default-304.119_k3.7.10_1.1-30.1"
    won't affect the "nvidia-gfxG02*" packages installed for the current
    kernel. But since it's not trying to get me to select from a list of
    "Conflict Resolutions" that includes a choice to break things, I'm willing
    to risk that I do in fact understand...

    So I said yes... It's processing as I type this...

    Thanks again!

    --
    JtWdyP


  7. #7
    JtWdyP NNTP User

    Default Re: How can I remove old kernal packages with zypper?


    It would appear that on Aug 4, Carlos E. R. did say:

    > On 2015-08-04 07:36, JtWdyP wrote:
    >
    >
    > > But it seems that on the http side of the house, the above url tag failed
    > > to display the tinypic url at all. Don't have a clue why.


    And It seems I did a typo when I called "img" tags "url" tags... Sorry for
    any confusion...

    >
    > Because it is a web page, not a png image. Let's try this way:


    -snipped. . . . . . . . . .stuff

    It would appear that on Aug 4, Carlos E. R. did ALSO say:

    > Actually, both displayed.


    Now I'm confused...

    When you say they both displayed, did you mean via the web gateway to the
    forum?!?

    And did you mean the img tagged link in my initial post? or the
    quoted version of the tagged link in my reply, where I also included a
    plain text version that the forum software made a clickable link out of it?

    Or did you just mean my plain text version & your modified version?

    when I use the web gateway to the forum none of the img tagged links are
    displayed, nor is the link itself displayed. There is just a blank spot in
    the post where either the image or the link should be.

    My plain text link shows up as a clickable link that will display the image
    if I click on it.

    But your modified link automatically displays????

    I looked closely at your modified link and found two differences.
    1) You had inserted a Lowercase o at the beginning of the tinypic domain name
    2) You had changed the ".png" in the link to ".jpg"

    So I used the web forum's preview function to do some empirical testing
    with this in the editor box.

    Code:
    test 1 as pasted from tinypic link field
    
    test 2 modified the .png in the link to say .jpg
    
    test 3 inserted lowercase o after double slash
    
    test 4 inserted the "o" AND changed .png to .jpg
    
    When I hit the preview, both test 3 and test 4 displayed the image.
    Whereas test 1 and 2 neither displayed the image, nor the text of the link.

    I'm thinking your right. The tinypic link points to a web page, not an
    actual image file. Thus even though I uploaded the image in png form, the
    tinypic site doesn't care if the three character extension lists the wrong
    image format.

    But since I pasted the img tagged link exactly the way tinypic's
    "IMG Code for Forums & Message Boards" link box displayed it,
    WHY would it take an inserted "o" in the link's domain name to get
    the forum software to properly display the image??

    I just don't get it. (I can now make it work, but I still don't "get" it)

    --
    JtWdyP


  8. #8
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    4,310

    Default AW: How can I remove old kernal packages with zypper?

    Code:
    zypper se -si kernel
    zypper se=search -s=more details -i=installed only kernel=to search for in the Name

    zypper --help
    zypper command --help

  9. #9
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: How can I remove old kernal packages with zypper?

    On 2015-08-04 20:36, JtWdyP wrote:

    By the way, you have to change your address to .com, not .org. It is not
    recognized by the forum.

    >> Actually, both displayed.

    >
    > Now I'm confused...
    >
    > When you say they both displayed, did you mean via the web gateway to the
    > forum?!?
    >
    > And did you mean the img tagged link in my initial post? or the
    > quoted version of the tagged link in my reply, where I also included a
    > plain text version that the forum software made a clickable link out of it?


    Well, look for yourself :-)

    Post number 1 has the image.
    #2 has it inside the quoted text. Then I see the link to it in the text.
    #4, mine, has it.


    > when I use the web gateway to the forum none of the img tagged links are
    > displayed, nor is the link itself displayed. There is just a blank spot in
    > the post where either the image or the link should be.


    They all display fine here, yours and mine.

    > But your modified link automatically displays????
    >
    > I looked closely at your modified link and found two differences.
    > 1) You had inserted a Lowercase o at the beginning of the tinypic domain name
    > 2) You had changed the ".png" in the link to ".jpg"



    That's because I opened the link on the web, then selected "see raw
    image", then pasted it.


    > So I used the web forum's preview function to do some empirical testing
    > with this in the editor box.
    >
    >
    Code:
    > test 1 as pasted from tinypic link field
    > 
    > test 2 modified the .png in the link to say .jpg
    > 
    > test 3 inserted lowercase o after double slash
    > 
    > test 4 inserted the "o" AND changed .png to .jpg
    > 
    >


    LOL. The text inside the code tags section above, as it has tags, is
    interpreted by the forum software, and the images are displayed, not the
    text.


    > When I hit the preview, both test 3 and test 4 displayed the image.
    > Whereas test 1 and 2 neither displayed the image, nor the text of the link.


    All four display in the final :-)

    The preview is not right.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 13.1 x86_64 "Bottle" at Telcontar)

  10. #10

    Default Re: How can I remove old kernal packages with zypper?


    It would appear that on Aug 4, Carlos E. R. did say:

    > On 2015-08-04 20:36, JtWdyP wrote:
    >
    > By the way, you have to change your address to .com, not .org. It is not
    > recognized by the forum.


    Thanks... I thought I fixed that some time ago... DUH musta been when I was
    using my laptop as my primary computer... Bet if I check my .addressbook
    and opensuse forum "role" setting there it already says .com... Anyway it's
    fixed on my desktop now. At least in my opensuse installation. Must
    remember to fix the .pinerc in my antiX and Mageia partitions.

    > >> Actually, both displayed.

    > >
    > > Now I'm confused...
    > >
    > > did you mean the img tagged link in my initial post? or the
    > > quoted version of the tagged link in my reply, where I also included a
    > > plain text version that the forum software made a clickable link out of it?

    >
    > Well, look for yourself :-)


    Actually I had looked... Turns out it's a browser related thing.
    If I log in to the forum with Firefox I get the results you described.
    But when I logged in with Opera, it didn't work that way.

    > > I looked closely at your modified link and found two differences.
    > > 1) You had inserted a Lowercase o at the beginning of the tinypic domain name
    > > 2) You had changed the ".png" in the link to ".jpg"

    >
    >
    > That's because I opened the link on the web, then selected "see raw
    > image", then pasted it.


    Hmmmnn Not that it matters But: Which browser do you use?

    I just replicated that with Opera, but the selection from the right click
    context menu said open image... Then for chucks and giggles I checked
    with Firefox, and it's context menu said view image. But neither seemed
    to offer anything labeled "raw image"?

    > LOL. The text inside the code tags section above, as it has tags, is
    > interpreted by the forum software, and the images are displayed, not the
    > text.


    Yeah, I expected one OR the other. I'm guessing the forum software didn't
    display the text because it thought it displayed the image. But Opera
    dropped the ball and failed to display it. Thus I got neither.

    > > When I hit the preview, both test 3 and test 4 displayed the image.
    > > Whereas test 1 and 2 neither displayed the image, nor the text of the link.

    >
    > All four display in the final :-)
    >
    > The preview is not right.


    For the heck of it, I just reran that preview test. Only this time I used
    firefox. And even in the preview, all 4 displayed.

    So it's confirmed, the problem is Opera. Which stinks.

    I use Firefox (with the noscript extension) for my secure browsing. Like on
    line banking etc... And routinely close the browser (which automatically
    flushes the history) whenever I log out from such a site.

    That's why I use opera for most forum logins, web searches, and so forth,
    things that I want to leave open until I'm well and truly done with them.
    -sigh-

    --
    JtWdyP


Page 1 of 2 12 LastLast

Posting Permissions

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