equo upgrade --replay ?

Anything that pertains to Entropy, Equo or Sulfur

Moderator: Moderators

Post Reply
ElDuderino
Growing Hen
Posts: 127
Joined: Fri Jul 20, 2012 23:15

equo upgrade --replay ?

Post by ElDuderino » Sun Mar 08, 2015 20:21

Hi,

I think there used to be an option to reinstall every package installed on a system, but equo doesn't have it anymore. Is there any way to achieve that?

(Maybe netbook seems to be missing files for reasons unknown to me, after its last upgrade, may be a filesystem mess-up. But entropy still thinks they are properly installed. Is there a way to check every package for its install status?)

Thanks!

svantoviit
Old Dear Hen
Posts: 744
Joined: Sun Feb 28, 2010 17:55
Contact:

Re: equo upgrade --replay ?

Post by svantoviit » Sat Mar 14, 2015 13:27

Give equo query a try.

Since the quite option doesn't work with equo query list for some reason, the task to reinstall all packages could be done with:

Code: Select all

equo i -a $(equo q list installed | awk 'NR > 1 {print $4}')
Mind, you'll need enough free space on your disk. This is what I get:

Code: Select all

╠  @@ Packages needing to be installed/updated/downgraded: 2397
╠  @@ Packages needing to be removed: 0
╠  @@ Packages needing to be installed: 29
╠  @@ Packages needing to be reinstalled: 2351
╠  @@ Packages needing to be updated: 2
╠  @@ Packages needing to be downgraded: 15
╠  @@ Download size: 1956.2MB
╠  @@ Used disk space: 227.0MB
╠  @@ You need at least: 10531.5MB of free space
╠  !!! Attention
╠  !!! Attention
╠  !!! You don't have enough space for the installation. Free some space into: /var/tmp/entropy
╠  !!! Attention
╠  !!! Attention
     Would you like to continue ? [Yes/No] 
All masked packages and packages not in the repository will be skipped and some of the packages installed via portage will be "downgraded".

If someone knows a more elegant/easier way, please, share it!

Fitzcarraldo
Sagely Hen
Posts: 8195
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom
Contact:

Re: equo upgrade --replay ?

Post by Fitzcarraldo » Sat Mar 14, 2015 21:01

Well, I don't know about more elegant or easier, but, if one happens to be a user of eix, I think the following would also re-install everything:

Code: Select all

yes "3" | equo install $(EIX_LIMIT=0 eix -I#)
That assumes the user has updated the eix database, of course, and it would leave currently-installed packages that are no longer in the Entropy repositories.

ElDuderino
Growing Hen
Posts: 127
Joined: Fri Jul 20, 2012 23:15

Re: equo upgrade --replay ?

Post by ElDuderino » Sat Mar 14, 2015 21:09

Thank you both for your replies, I reinstalled some packages manually, they seem to be the only ones, so far. But it's good to know how to do that.

The thing is, I couldnt start my X server, because both video drivers and input drivers were installed according to entropy, but the actual files were missing. Fs (btrfs) was ok, I checked. So I wonder how that happened.

Post Reply