Ask / Submit
2

How to delete patches [answered]

asked 2015-10-19 07:29:27 +0300

aimel gravatar image

Hey! How do I delete patches instead of just disabling them? Is the only way to search it from the Warehouse and choosing 'uninstall' below 'update'?

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by JSEHV
close date 2016-02-01 13:29:32.346869

Comments

in terminal pkcon remove 'patchname'

greendts ( 2015-10-19 13:02:27 +0300 )edit
2

What, if I get the message "failed to remove patch" when trying to delete a patch in Patchmanager?

SagaciousT ( 2017-08-09 18:54:30 +0300 )edit

2 Answers

Sort by » oldest newest most voted
4

answered 2015-10-19 13:08:22 +0300

burn3r gravatar image

updated 2015-10-19 15:55:55 +0300

  1. Open terminal
  2. pkcon search name patchname
  3. pkcon remove patchname
edit flag offensive delete publish link more

Comments

2

That's assuming that all patches have "sailfishos" in the name. Which they don't: just have a quick look at the list.

BTW pkcon in SFOS does not need devel-su. Weird but true. I did not know that myself until someone pointed that out.

pichlo ( 2015-10-19 15:40:54 +0300 )edit
1

True, all of the ones that I'm using have sailfishos in the package name, sorry for the confusion, just trying to help :). Didn't know about not needing the devel-su, thanks for pointing that out.

burn3r ( 2015-10-19 15:48:43 +0300 )edit

Updated the answer.

burn3r ( 2015-10-19 15:56:07 +0300 )edit
3

answered 2015-10-19 16:23:45 +0300

g7 gravatar image

You can use this snippet to find every installed patch:

find /usr/share/patchmanager/patches -name unified_diff.patch -exec rpm --queryformat "%{NAME}\n" -qf {} \;

and to remove them all, you can use (haven't tested it, but should work) this instead:

find /usr/share/patchmanager/patches -name unified_diff.patch -exec rpm --queryformat "%{NAME}\n" -qf {} \; | xargs pkcon remove -y
edit flag offensive delete publish link more

Question tools

Follow
4 followers

Stats

Asked: 2015-10-19 07:29:27 +0300

Seen: 1,371 times

Last updated: Oct 19 '15