We have moved to a new Sailfish OS Forum. Please start new discussions there.
4

How-to reinstall all packages [answered]

asked 2017-04-15 21:39:02 +0300

nomeata gravatar image

updated 2017-04-17 19:07:08 +0300

After some slightly non-standard backup recovery procedure, I’d like to fix things further by redownloading and reinstalling all rpm packages. What is the easiest way of doing that on Sailfish OS?

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by nthn
close date 2017-04-16 21:23:54.150432

1 Answer

Sort by » oldest newest most voted
6

answered 2017-04-15 23:04:53 +0300

nomeata gravatar image

updated 2017-04-17 19:06:57 +0300

for p in $(rpm -q -a --qf "%{NAME}\n" | sort); do echo $p; pkcon install $p; done
edit flag offensive delete publish link more

Comments

i have converted your question into an how-to article

pawel ( 2017-04-16 14:11:11 +0300 )edit

I guess I have a serious problem: the command above returns "Failed - Could not find package xxx" (for ALL listed packages)

objectifnul ( 2017-04-17 00:25:35 +0300 )edit

I had that for a few packages (which is why I run the install command on each package separately). If it does it for all, then maybe you need to refresh your repositories?

nomeata ( 2017-04-17 00:42:37 +0300 )edit

Same issue after pkcon refresh :-(

(Since a weird incident yesterday, several apps are now broken or semi-broken, that's why I believed your post could maybe save my life)

Will try again tomorrow with zypper instead of pkcon

objectifnul ( 2017-04-17 00:46:00 +0300 )edit

I suspect the issue is this: pkcon install zypper will work but pkcon install zypper-1.8.3-1.1.39-armv7hl (with version number) won't. How do I format rpm output to keep only the package name?

objectifnul ( 2017-04-17 10:13:52 +0300 )edit

Question tools

Follow
4 followers

Stats

Asked: 2017-04-15 21:39:02 +0300

Seen: 837 times

Last updated: Apr 17 '17