How to exlude package from upgrading? [Solved]

Anything that pertains to Entropy, Equo or Sulfur

Moderator: Moderators

How to exlude package from upgrading? [Solved]

Postby linuxfluesterer » Fri Feb 22, 2013 12:55

Hallo guys.
I have experienced, that after upgrading my system (SL X with Kernel 3.7.4 and KDE 4.9.5) akonadi server didn't start anymore. I assume a bug. So, I've restored my last system backup before upgrading.
Now, I have again 37 packages to update, including the newest akonadi server 1.9. Now I've version 1.8.1 on my system.
I want to upgrade my system, but I want to exclude akonadi 1.9 explicitly.
How can I do that in Rigo or with equo?
I have tried:
Code: Select all
equo upgrade --ask
but I fear, I will not being asked then for update single packages.
And then I would have installed new akonadi server with its problem again. I will wait, until next version of akonadi is available.
Any idea?

Thank you in advance.

-Linuxfluesterer (I love KDE ...)
Last edited by linuxfluesterer on Fri Feb 22, 2013 20:17, edited 1 time in total.
I really hope, that by the Brexit (poor Britain), TTIP will be finally prevented. But don't get tired to talk to your local politician to open eyes for danger to democracy because of TTIP
User avatar
linuxfluesterer
Old Dear Hen
 
Posts: 704
Joined: Thu Sep 20, 2012 19:47
Location: Germany

Re: How to exlude package from upgrading?

Postby sabayonino » Fri Feb 22, 2013 13:12

equo --help can solve your problem
Code: Select all
# equo --help


Code: Select all
# equo --help
usage: equo [-h] [--color]

Entropy Command Line Client, Equo

optional arguments:
  -h, --help            show this help message and exit
  --color               force colored output

command:
  available commands

  cache                 manage Entropy Library Cache
  cleanup               remove downloaded packages and clean temp. directories
  conf                  manage package file updates
  config                configure installed packages
  deptest [dt]          look for unsatisfied dependencies
  download [fetch]      download packages, essentially
  help [-h, --help]     this help
  hop                   upgrade the System to a new branch
  install [i]           install or update packages or package files
  libtest [lt]          look for missing libraries
  mask                  mask one or more packages
  match [m]             match packages in repositories
  notice                repository notice board reader
  pkg [smart]           execute advanced tasks on packages
  query [q]             repository query tools
  remove [rm]           remove packages from system
  repo                  manage repositories
  rescue                tools to rescue the running system
  search [s]            search packages in repositories
  security [sec]        system security tools
  source [src]          download packages source code
  status [st, --info]   show Repositories status
  ugc                   manage User Generated Content
  unmask                unmask one or more packages
  unusedpackages [unused]  look for unused packages (pay attention)
  update [up]           update repositories
  upgrade [u]           upgrade the system
  version [--version]   show equo version


mask mask one or more packages


mask akonadi-server-1.9.0 (and above)
Code: Select all
# equo mask ">=app-office/akonadi-server-1.9.0"
>>  ## [M] >=app-office/akonadi-server-1.9.0
>>     -> app-office/akonadi-server-1.9.0
>> Have a nice day.


Verify :
Code: Select all
# equo install akonadi-server

>>  !!! Every package matching akonadi-server is masked.
>>     # Masking reason: user package.mask
>>      <> atom: app-office/akonadi-server-1.9.0 in sabayonlinux.org
>> No packages found.


:mrgreen:

[edit] please see /etc/entropy/packages directory

package(s) masked is in package.mask file
( equo unmask <atom> , provide to unmask the package ; see /etc/entropy/packages/package.unmask)
User avatar
sabayonino
Sagely Hen
 
Posts: 2515
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Re: How to exlude package from upgrading?

Postby linuxfluesterer » Fri Feb 22, 2013 13:44

Thank you very much, Sabayonino.
I just followed your (last) commands with 'mask' and then I did an
Code: Select all
equo upgrade

Now akonadi server is still not updated, still old version 1.8.1.
And as I see (for this moment) the system seems not to be corrupted.
To be honest: I did a:
Code: Select all
man equo

but I have my problems with understanding of the command and its options.
And, what you suggested, is a combination of masking, that leads into a list which excludes packages in a seperate step,
followed by the second step to upgrade with excluded packages from the package.mask file.
So, again...
Grazie a te....

-Linuxfluesterer (I love KDE ...)
I really hope, that by the Brexit (poor Britain), TTIP will be finally prevented. But don't get tired to talk to your local politician to open eyes for danger to democracy because of TTIP
User avatar
linuxfluesterer
Old Dear Hen
 
Posts: 704
Joined: Thu Sep 20, 2012 19:47
Location: Germany

Re: How to exlude package from upgrading?

Postby sabayonino » Fri Feb 22, 2013 13:51

linuxfluesterer wrote:but I have my problems with understanding of the command and its options.



for more options about "equo mask" , run it without any arguments :
Code: Select all
# equo mask
usage: equo mask [-h] [--ask | --pretend] <package> [<package> ...]
equo mask: error: too few arguments


(do this for all options you need ; mask,unmask,update,upgrade,cache etc..)
:wink:

Examples :
Code: Select all
# equo rescue
usage: equo rescue [-h]
                   {check,vacuum,generate,spmuids,spmsync,backup,restore} ...
equo rescue: error: too few arguments


Code: Select all
quo install
usage: equo install [-h] [--ask | --pretend] [--verbose] [--quiet] [--fetch]
                    [--bdeps] [--nodeps] [--norecursive] [--deep] [--empty]
                    [--configfiles] [--relaxed]
                    [--multifetch {1,2,3,4,5,6,7,8,9,10}]
                    <package> [<package> ...]
equo install: error: too few arguments


Code: Select all
equo remove
usage: equo remove [-h] [--ask | --pretend] [--verbose] [--nodeps]
                   [--norecursive] [--deep] [--empty] [--configfiles]
                   [--force-system]
                   <package> [<package> ...]
equo remove: error: too few arguments


and so on...

see also "--help" comand for all equo options:
Code: Select all
equo remove --help
usage: equo remove [-h] [--ask | --pretend] [--verbose] [--nodeps]
                   [--norecursive] [--deep] [--empty] [--configfiles]
                   [--force-system]
                   <package> [<package> ...]

remove packages from system

positional arguments:
  <package>       package name

optional arguments:
  -h, --help      show this help message and exit
  --ask, -a       ask before making any changes
  --pretend, -p   show what would be done
  --verbose, -v   verbose output
  --nodeps        exclude package dependencies
  --norecursive   do not calculate dependencies recursively
  --deep          include dependencies no longer needed
  --empty         when used with --deep, include virtual packages
  --configfiles   remove package configuration files no longer needed
  --force-system  force system packages removal (dangerous!)


[edit] remember : you have masked all akonadi-server updates
User avatar
sabayonino
Sagely Hen
 
Posts: 2515
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Re: How to exlude package from upgrading?

Postby linuxfluesterer » Fri Feb 22, 2013 14:28

Thank you for support again, Sabayonino.
sabayonino wrote:[edit] remember : you have masked all akonadi-server updates

Do you mean future updates (e.g. akonadi-server-1.9.1 or akonadi-server-2.0)?
Anyway, I can check for available akonadi versions with:
Code: Select all
equo search akonadi
>>  @@ Searching...
>>      @@ Paket: app-office/akonadi-server-1.9.0 Branch: 5, [sabayonlinux.org]
>>         Available:   Version: 1.9.0 ~ tag: NoTag ~ Version: 2
>>         Installed:   Version: 1.8.1 ~ tag: NoTag ~ Version: 0
>>         Slot:        0
>>         Homepage: http://pim.kde.org/akonadi
>>         Description:The server part of Akonadi
>>         Lizenz:        LGPL-2.1
>>      @@ Paket: kde-base/akonadiconsole-4.9.5 Branch: 5, [sabayonlinux.org]
>>         Available:   Version: 4.9.5 ~ tag: NoTag ~ Version: 2
>>         Installed:   Version: Not installiert ~ tag: N/A ~ Version: N/A
>>         Slot:        4
>>         Homepage:       http://www.kde.org/
>>         Description:   Akonadi developer console
>>         Lizenz:         GPL-2
>>  Keywords:  akonadi
>>  Found:         2 Entries

In case, I see, there is a new version available, then I can
Code: Select all
equo unmask ">=app-office/akonadi-server-1.9.0"

And then do a
Code: Select all
equo update
again, and I should be able to install the new version > 1.9.0.
Am I right?

-Linuxfluesterer (I love KDE ...)
I really hope, that by the Brexit (poor Britain), TTIP will be finally prevented. But don't get tired to talk to your local politician to open eyes for danger to democracy because of TTIP
User avatar
linuxfluesterer
Old Dear Hen
 
Posts: 704
Joined: Thu Sep 20, 2012 19:47
Location: Germany

Re: How to exlude package from upgrading?

Postby Ryuno-Ki » Fri Feb 22, 2013 15:40

Code: Select all
$ man equo-subcommand

works, too. here subcommand == mask
Yes, ">=app-office/akonadi-server-1.9.0" means all versions >= 1.9.0 (greater or equal) in a mathematical sense, so future updates are affected, too.

equo update only updates your local repo database. To install newer versions, you have to run equo upgrade.
HP-Pavilion ◆ AMD Athlon™ 64 Processor 4000+ ◆ GeForce 6150SE nForce 430 ◆ 1 GiB RAM
German Wiki translator ◆ Want to contribute on the wiki? Ask the Bureaucrats!
Please, mark solved threads ◆ Posts unread and unansweredPackage requests ◆ Sabayon XI with MATE
Ryuno-Ki
Technological Hen
 
Posts: 437
Joined: Mon Feb 27, 2012 22:15
Location: Southern Germany

Re: How to exlude package from upgrading?

Postby linuxfluesterer » Fri Feb 22, 2013 18:28

Ryuno-Ki, why do you think, I do misunderstand between
Code: Select all
equo update
and
Code: Select all
equo upgrade
?
That was NOT the topic here.
I can see the newest versions of packages in Rigo, because, I click on 'Update Repositories'.
I know, how to upgrade my system (install the new packages then) in Rigo with a simple click and confirm as root.
As same, as I can update those repositories and upgrade my system manually.
I do it sometimes, especially in case, when Rigo was (or is) weird.
The topic was 'How to exclude packages from upgrading'. In fact, that is an Update.
Usually the specification is, a system can be upgraded but a package itself is updated (also the repos).
But to prevent some (new) packages from being installed, I need to exclude them manually (with mask).
And after masking, then of course I do an
equo upgrade
to upgrade then really all my system with latest packages.

The point is my difficulty to understand the command. The problem is, that there are often no examples in
man <command>.
And examples (or explanation with help from Google or also here in forum) is best way for me to learn and understand.

-Linuxfluesterer (I love KDE ...)
I really hope, that by the Brexit (poor Britain), TTIP will be finally prevented. But don't get tired to talk to your local politician to open eyes for danger to democracy because of TTIP
User avatar
linuxfluesterer
Old Dear Hen
 
Posts: 704
Joined: Thu Sep 20, 2012 19:47
Location: Germany

Re: How to exlude package from upgrading?

Postby sabayonino » Fri Feb 22, 2013 19:02

linuxfr. you can mask all version you want (I type >= for all version) but you can run

mask all foo version
Code: Select all
# equo mask foo 


you can use >= =< < > = math symbols for a specific version or a range to mask or unmask

if you don't want mask all future updates about akonadi-server but only 1.9.0
Code: Select all
# equo mask "=app-office/akonadi-server-1.9.0"


remember to unmask >1.9.0 'cause masked already
Code: Select all
# equo unmask ">app-office/akonadi-server-1.9.0"


or simply edit /etc/entropy/packages/package.{mask,unmask}

akonadi-server will not update for 1.9.0 version .

but if some packages need for 1.9.0 , akonadi-server-1.9.0 must be unmasked
User avatar
sabayonino
Sagely Hen
 
Posts: 2515
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Re: How to exlude package from upgrading?

Postby linuxfluesterer » Fri Feb 22, 2013 20:16

And thank you again, Sabayonino.
I understand masking now.
I've change the /etc/entropy/packages/package.mask file, the line with akonadi-server from '>=' to '=',
because I will see, if there are changed versions of akonadi-server > 1.9.0.
I think, this thread is answered completly.
I will mark it as close.
Anyway, I am interested to know, can I downgrade a package from Sabayon in case of misbehave instead of restoring all my system?

-Linuxfluesterer (I love KDE ...)
I really hope, that by the Brexit (poor Britain), TTIP will be finally prevented. But don't get tired to talk to your local politician to open eyes for danger to democracy because of TTIP
User avatar
linuxfluesterer
Old Dear Hen
 
Posts: 704
Joined: Thu Sep 20, 2012 19:47
Location: Germany

Re: How to exlude package from upgrading?

Postby sabayonino » Fri Feb 22, 2013 20:57

linuxfluesterer wrote:And thank you again, Sabayonino.
I understand masking now.
I've change the /etc/entropy/packages/package.mask file, the line with akonadi-server from '>=' to '=',
because I will see, if there are changed versions of akonadi-server > 1.9.0.
I think, this thread is answered completly.
I will mark it as close.
Anyway, I am interested to know, can I downgrade a package from Sabayon in case of misbehave instead of restoring all my system?

-Linuxfluesterer (I love KDE ...)

Sabayon is rolling ,if an old package there is in the servers and entropyy database , you can downgrade it.

Sabayon has two package managers ... portage can be the last resource to downgrade a package that there is no longer in entropy.

consider to backup entropy database if you want reinstall the entire system without a clear installation

Code: Select all
# equo rescue --help
usage: equo rescue [-h]
                   {check,vacuum,generate,spmuids,spmsync,backup,restore} ...

tools to rescue the running system

optional arguments:
  -h, --help            show this help message and exit

action:
  execute advanced tasks on packages

  {check,vacuum,generate,spmuids,spmsync,backup,restore}
                        available commands
    check               check installed packages repository for errors
    vacuum              compact the installed packages repository
    generate            re-generate the installed packages repository using
                        the Source Package Manager
    spmuids             re-generate SPM<->Entropy package UIDs mapping
    spmsync             update Entropy installed packages repository merging
                        Source Package Manager changes
    backup              create a backup of the installed packages repository
    restore             restore a backup of the installed packages repository
scue: error: too few arguments



Example : backup entropy database
Code: Select all
equo rescue backup
>>    Database Export complete.
>>  @@ Repository backed up successfully: entropy_backup___system__.2013222_20h45m56s.backup.bz2


If something goes wrong , check entropy backup database :
Code: Select all
# equo rescue restore
Entropy Installed Packages Repository backups
>> Select the repository to restore
>> [1] [2013-02-22 20:46:10.222888] /var/lib/entropy/client/database/amd64 entropy_backup___system__.2013222_20h45m56s.backup.bz2
>> [2] [2013-02-22 20:47:56.072898] /var/lib/entropy/client/database/amd64/entropy_backup___system__.2013222_20h47m42s.backup.bz2
Selected number:


choose number backup listed ( Example : [2])
Code: Select all
Selected number: 2
>>  @@ Repository restored successfully: entropy_backup___system__.2013222_20h47m42s.backup.bz2


Now you can reinstall all the system if you want
Code: Select all
# equo upgrade --bdeps --deep

(don't update the system 'cause entropy database will be overwritten with a new update version if exists)

see
Code: Select all
# equo upgrade --help


[edit] old entropy version , equo had a "--reply" option to install all packages installed ....
User avatar
sabayonino
Sagely Hen
 
Posts: 2515
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Next

Return to Entropy|Equo|Rigo Package Managers

Who is online

Users browsing this forum: No registered users and 4 guests

cron