Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Upgrade only obsoleted packages by eix-test-obsolete
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
md500
n00b
n00b


Joined: 16 Jun 2016
Posts: 4

PostPosted: Fri Mar 31, 2017 4:27 pm    Post subject: Upgrade only obsoleted packages by eix-test-obsolete Reply with quote

Anyone know how to upgrade only obsolete packages without updating whole system?

if i do:

Code:
EIX_LIMIT=0 eix-test-obsolete


i get:

Code:

No non-matching entries in /etc/portage/package.keywords
Non-matching entries in /etc/portage/package.accept_keywords:

=www-client/google-chrome-54.0.2840.100 ~amd64
--

No non-matching entries in /etc/portage/package.mask
No non-matching entries in /etc/portage/package.unmask
No non-matching or empty entries in /etc/portage/package.use
No non-matching or empty entries in /etc/portage/package.env
No non-matching or empty entries in /etc/portage/package.license
No non-matching or empty entries in /etc/portage/package.accept_restrict
No non-matching or empty entries in /etc/portage/package.cflags
The names of all installed packages are in the database.


Redundant in /etc/portage/package.{,accept_}keywords:

... considered as REDUNDANT_IF_NO_CHANGE
[U] app-emulation/wine (1.9.20@28/12/16 -> (~)2.3^t): Free implementation of Windows(tm) on Unix
[N] dev-util/eclipse-sdk-bin [2] ((~)4.6.2(4.6)): Eclipse SDK
[I] games-emulation/dolphin (5.0@28/12/16): Gamecube and Wii game emulator
[N] media-gfx/sweethome3d-bin [1] ((~)5.4): Sweet Home 3D is a free interior design application.
[I] net-libs/enet (1.3.13(1.3)@28/12/16): relatively thin, simple and robust network communication layer on top of UDP
[I] sys-kernel/dracut (044-r1@13/11/16): Generic initramfs generation tool
[U] sys-power/iasl (20160729@05/02/17 -> (~)20161222): Intel ACPI Source Language (ASL) compiler
[1] "robert7k" /var/lib/layman/robert7k
[2] "eclipse" /var/lib/layman/eclipse

Found 7 matches


Not installed but in /etc/portage/package.{,accept_}keywords:
[N] dev-util/eclipse-sdk-bin [2] ((~)4.6.2(4.6)): Eclipse SDK
[N] media-gfx/sweethome3d-bin [1] ((~)5.4): Sweet Home 3D is a free interior design application.
[1] "robert7k" /var/lib/layman/robert7k
[2] "eclipse" /var/lib/layman/eclipse

Found 2 matches

No  redundant  entries in /etc/portage/package.mask

Not installed but in /etc/portage/package.mask:
[N] sys-kernel/vanilla-sources (~4.9.18(4.9.18)): Full sources for the Linux kernel

No  redundant  entries in /etc/portage/package.unmask
No uninstalled entries in /etc/portage/package.unmask
Skipping check:  redundant  entries in /etc/portage/package.use
Skipping check: uninstalled entries in /etc/portage/package.use
Skipping check:  redundant  entries in /etc/portage/package.env
Skipping check: uninstalled entries in /etc/portage/package.env
No  redundant  entries in /etc/portage/package.license
No uninstalled entries in /etc/portage/package.license
No  redundant  entries in /etc/portage/package.accept_restrict
No uninstalled entries in /etc/portage/package.accept_restrict
Skipping check:  redundant  entries in /etc/portage/package.cflags
Skipping check: uninstalled entries in /etc/portage/package.cflags


Installed packages with a version not in the database (or masked): <<<--I want to get rid this

Code:

[U] app-admin/logrotate (3.10.0@12/11/16 -> 3.11.0): Rotates, compresses, and mails system logs
[U] app-admin/sudo (1.8.16@13/11/16 -> 1.8.18_p1): Allows users or groups to run commands as other users
[U] app-arch/libarchive (3.2.2(0/13)@26/11/16 -> 3.2.2-r1(0/13)): BSD tar command
[U] app-emulation/playonlinux (4.2.10@28/11/16 -> (~)4.2.10-r1): Set of scripts to easily install and use Windows games and software
[U] app-emulation/wine (1.9.20@28/12/16 -> (~)2.3^t): Free implementation of Windows(tm) on Unix
[U] app-eselect/eselect-mesa (0.0.10@12/11/16 -> 0.0.10-r1): Utility to change the Mesa OpenGL driver being used
[U] app-eselect/eselect-pinentry (0.6@21/11/16 -> 0.7): Manage /usr/bin/pinentry symlink
[U] app-i18n/enca (1.14-r2@21/11/16 -> 1.19-r1): Detect and convert encoding of text files
[U] app-misc/ca-certificates (20151214.3.21@03/11/16 -> 20161102.3.27.2-r2): Common CA Certificates PEM files
[U] app-portage/gentoolkit (0.3.0.9-r2@14/11/16 -> 0.3.3): Collection of administration scripts for Gentoo
[U] app-text/ghostscript-gpl (9.15-r1@13/11/16 -> 9.20-r1): Ghostscript is an interpreter for the PostScript language and for PDF
[U] app-text/iso-codes (3.70@13/11/16 -> 3.74^bs): ISO language, territory, currency, script codes and their translations
[U] app-text/qpdf (5.1.1(0/13)@13/11/16 -> 5.1.1-r1(0/13)): Command-line tool for structural, content-preserving transformation of PDF files
[U] app-text/rarian (0.8.1-r2@02/12/16 -> 0.8.1-r3): A documentation metadata library
[U] dev-libs/libevdev (1.5.2@18/11/16 -> 1.5.6^t): Handler library for evdev events
[U] dev-libs/libgee (0.18.0(0.8/2)@05/02/17 -> 0.6.8 0.18.1(0.8/2)): GObject-based interfaces and classes for commonly used data structures
[U] dev-libs/libnl (3.2.27(3)@18/11/16 -> 1.1.4(1.1) 3.2.28(3)): Libraries providing APIs to netlink protocol based Linux kernel interfaces
[U] dev-libs/libtasn1 (4.8(0/6)@26/11/16 -> 4.10-r1(0/6)): ASN.1 library
[U] dev-libs/libunique (3.0.2(3)@30/11/16 -> 1.1.6-r2(1) 3.0.2-r1(3)): A library for writing single instance application
[U] dev-libs/libxml2 (2.9.4(2)@26/11/16 -> 2.9.4-r1(2)): Version 2 of the library to manipulate XML files
[U] dev-libs/libxslt (1.1.29@18/11/16 -> 1.1.29-r1): XSLT libraries and tools
[U] dev-libs/nss (3.23@18/11/16 -> 3.28.1^t): Mozilla's Network Security Services library that implements PKI support
[U] dev-libs/openssl (1.0.2j@18/11/16 -> 0.9.8z_p8(0.9.8)^d 1.0.2k^d): full-strength general purpose cryptography library (including SSL and TLS)
[U] dev-perl/Net-SSLeay (1.720.0-r1@21/11/16 -> 1.800.0): Perl extension for using OpenSSL
[U] dev-perl/XML-Parser (2.410.0-r2@03/11/16 -> 2.440.0): A Perl extension interface to James Clark's XML parser, expat
[U] dev-python/certifi (2015.11.20@03/11/16 -> 2016.9.26): Python package for providing Mozilla's CA Bundle
[U] dev-python/cryptography (1.5.2@26/11/16 -> 1.7.1): Library providing cryptographic recipes and primitives
[U] dev-util/cmake (3.6.3@28/12/16 -> 3.7.2): Cross platform Make
[U] dev-util/dialog (1.3.20160424@28/12/16 -> 1.3.20160828): tool to display dialog boxes from a shell
[U] dev-vcs/git (2.7.3-r1@21/11/16 -> 2.10.2): stupid content tracker: distributed VCS designed for speed and efficiency
[U] games-emulation/vbam (2.0.0_beta2_pre1507@29/12/16 -> 2.0.0_beta2_pre1507-r1): Game Boy, GBC, and GBA emulator forked from VisualBoyAdvance
[U] gnome-base/libgtop (2.34.1(2/10)@30/11/16 -> 2.34.2(2/10)): A library that provides top functionality to applications
[U] media-gfx/eog (3.20.4(1)@13/11/16 -> 3.20.5(1)): The Eye of GNOME image viewer
[U] media-gfx/imagemagick (6.9.6.2(0/6.9.6.2)@28/11/16 -> 6.9.7.4(0/6.9.7.4)^u): A collection of tools and libraries for many image formats
[U] media-libs/libepoxy (1.3.1@18/11/16 -> 1.4.1): Epoxy is a library for handling OpenGL function pointer management for you
[U] media-sound/mpg123 (1.22.4@24/11/16 -> 1.23.8): a realtime MPEG 1.0/2.0/2.5 audio player for layers 1, 2 and 3
[U] media-video/ffmpeg (2.8.6(0/54.56.56)@29/12/16 -> 3.2.4(0/55.57.57)^d): Complete solution to record, convert and stream audio and video. Includes libavcodec
[U] net-libs/libpcap (1.8.0@24/11/16 -> 1.8.1): A system-independent library for user-level network packet capture
[U] net-libs/libproxy (0.4.13-r1@18/11/16 -> 0.4.13-r2): Library for automatic proxy configuration management
[U] net-misc/curl (7.51.0@18/11/16 -> 7.53.0^t): A Client that groks URLs
[U] net-nds/openldap (2.4.43@28/11/16 -> 2.4.44): LDAP suite of application and development tools
[U] net-p2p/transmission (2.92-r1@29/03/17 -> 2.92-r2): A fast, easy, and free BitTorrent client
[U] sys-apps/man-db (2.7.5@03/11/16 -> 2.7.6.1-r2): a man replacement that utilizes berkdb instead of flat files
[U] sys-apps/mlocate (0.26-r1@12/11/16 -> 0.26-r2): Merging locate is an utility to index and quickly search for files
[U] sys-apps/sed (4.2.1-r1@03/11/16 -> 4.2.2): Super-useful stream editor
[U] sys-apps/shadow (4.1.5.1-r1@03/11/16 -> 4.4-r2): Utilities to deal with user accounts
[U] sys-block/gparted (0.26.1@13/11/16 -> 0.27.0): Gnome Partition Editor
[U] sys-devel/flex (2.5.39-r1@18/11/16 -> 2.6.1): The Fast Lexical Analyzer
[U] sys-fs/e2fsprogs (1.42.13@12/11/16 -> 1.43.3-r1): Standard EXT2/EXT3/EXT4 filesystem utilities
[U] sys-fs/udisks (2.1.7(2)@13/11/16 -> 1.0.5-r1 2.1.8(2)): Daemon providing interfaces to work with storage devices
[U] sys-libs/e2fsprogs-libs (1.42.13@18/11/16 -> 1.43.3): e2fsprogs libraries (common error and subsystem)
[U] virtual/perl-CPAN-Meta-YAML (0.12.0-r2@26/11/16 -> 0.12.0-r3): Virtual for CPAN-Meta-YAML
[U] virtual/perl-Digest-SHA (5.950.0-r3@26/11/16 -> 5.950.100_rc-r1): Virtual for Digest-SHA
[U] virtual/perl-ExtUtils-MakeMaker (7.40.100_rc-r1@26/11/16 -> 7.40.200_rc): Virtual for ExtUtils-MakeMaker
[U] virtual/perl-IO (1.350.0-r1@26/11/16 -> 1.350.100_rc): Virtual for IO
[U] virtual/perl-IO-Compress (2.68.0-r1@26/11/16 -> 2.68.1_rc): Virtual for IO-Compress
[U] virtual/perl-JSON-PP (2.273.0-r3@26/11/16 -> 2.273.0.100_rc-r1): Virtual for JSON-PP
[U] virtual/perl-Parse-CPAN-Meta (1.441.400-r2@26/11/16 -> 1.441.400.100_rc): Virtual for Parse-CPAN-Meta
[U] virtual/perl-Test-Harness (3.350.0-r1@26/11/16 -> 3.350.100_rc): Virtual for Test-Harness
[U] virtual/perl-Time-Local (1.230.0-r4@26/11/16 -> 1.230.0-r5): Virtual for Time-Local
[U] virtual/perl-libnet (3.50.0-r1@26/11/16 -> 3.50.100_rc): Virtual for libnet
[U] virtual/perl-version (0.990.900-r3@26/11/16 -> 0.990.900-r4): Virtual for version
[U] www-client/firefox-bin (45.5.0@26/11/16 -> 45.8.0^ms): Firefox Web Browser
[?] www-client/google-chrome (54.0.2840.100@13/11/16 -> ~57.0.2987.133^msd): The web browser from Google
[U] x11-apps/xauth (1.0.9-r2@12/11/16 -> 1.0.10): X authority file utility
[U] x11-drivers/xf86-input-mouse (1.8.1@28/11/16 -> 1.9.2): X.Org driver for mouse input devices
[U] x11-libs/cairo (1.14.6@26/11/16 -> 1.14.8^t): A vector graphics library with cross-device output support
[U] x11-libs/libX11 (1.6.4@14/11/16 -> 1.6.5): X.Org X11 library
[U] x11-libs/libXfont (1.5.1@12/11/16 -> 1.5.2): X.Org Xfont library
[U] x11-libs/libXi (1.7.8@18/11/16 -> 1.7.9): X.Org Xi library
[U] x11-libs/libXpm (3.5.11@18/11/16 -> 3.5.12): X.Org Xpm library
[U] x11-libs/libxcb (1.12(0/1.12)@14/11/16 -> 1.12-r2(0/1.12)): X C-language Bindings library
[U] x11-misc/menumaker (0.99.7@13/11/16 -> 0.99.10): Utility that scans through the system and generates a menu of installed programs
[U] x11-misc/tint2 (0.11-r2@13/11/16 -> 0.12.12): tint2 is a lightweight panel/taskbar for Linux.
[U] x11-misc/xdg-utils (1.1.1@13/11/16 -> 1.1.1-r1^t): Portland utils for cross-platform/cross-toolkit/cross-desktop interoperability
[U] x11-misc/xkeyboard-config (2.17@12/11/16 -> 2.20): X keyboard configuration database
[U] x11-misc/xscreensaver (5.35-r2@26/11/16 -> 5.36): A modular screen saver and locker for the X Window System
[U] x11-terms/xterm (325@28/12/16 -> 327): Terminal Emulator for X Windows
[1] "backbone" /var/lib/layman/backbone
[2] "robert7k" /var/lib/layman/robert7k

Found 78 matches



I tried using:

Code:
emerge -avt @unavailable


but only emerge packages with [?] symbol.

any advices and possible way to emerge this 78 packages?
Back to top
View user's profile Send private message
cboldt
l33t
l33t


Joined: 24 Aug 2005
Posts: 837

PostPosted: Fri Mar 31, 2017 4:54 pm    Post subject: Reply with quote

Just use that list and "transform" it with awk or cut, and feed the transformed list to `emerge -- update --oneshot `

Probably quicker than researching all the possibilities of correlating eix output with emerge action, and perhaps figuring out, after a few hours, that you can get close, but not exact, with some `emerge` command.
Back to top
View user's profile Send private message
md500
n00b
n00b


Joined: 16 Jun 2016
Posts: 4

PostPosted: Mon Apr 03, 2017 3:37 am    Post subject: I found It Reply with quote

I found it:

if I issue:

Code:

TEST_FOR_REDUNDANCY=false eix -cT | awk '{print $2}' | head -n $(TEST_FOR_REDUNDANCY=false eix -cT | grep Found | cut -c6-9


it will output:

Code:

app-admin/logrotate
app-admin/sudo
app-arch/libarchive
app-emulation/playonlinux
app-emulation/wine
app-eselect/eselect-mesa
app-eselect/eselect-pinentry
app-i18n/enca
app-misc/ca-certificates
app-portage/gentoolkit
app-text/ghostscript-gpl
app-text/iso-codes
app-text/qpdf
app-text/rarian
dev-libs/libevdev
dev-libs/libgee
dev-libs/libnl
dev-libs/libtasn1
dev-libs/libunique
dev-libs/libxml2
dev-libs/libxslt
dev-libs/nss
dev-libs/openssl
dev-perl/Net-SSLeay
dev-perl/XML-Parser
dev-python/certifi
dev-python/cryptography
dev-util/cmake
dev-util/dialog
dev-vcs/git
games-emulation/vbam
gnome-base/libgtop
media-gfx/eog
media-gfx/imagemagick
media-libs/libepoxy
media-sound/mpg123
media-video/ffmpeg
net-libs/libpcap
net-libs/libproxy
net-misc/curl
net-nds/openldap
net-p2p/transmission
sys-apps/man-db
sys-apps/mlocate
sys-apps/sed
sys-apps/shadow
sys-block/gparted
sys-devel/flex
sys-fs/e2fsprogs
sys-fs/udisks
sys-libs/e2fsprogs-libs
virtual/perl-CPAN-Meta-YAML
virtual/perl-Digest-SHA
virtual/perl-ExtUtils-MakeMaker
virtual/perl-IO
virtual/perl-IO-Compress
virtual/perl-JSON-PP
virtual/perl-Parse-CPAN-Meta
virtual/perl-Test-Harness
virtual/perl-Time-Local
virtual/perl-libnet
virtual/perl-version
www-client/firefox-bin
www-client/google-chrome
x11-apps/xauth
x11-drivers/xf86-input-mouse
x11-libs/cairo
x11-libs/libX11
x11-libs/libXfont
x11-libs/libXi
x11-libs/libXpm
x11-libs/libxcb
x11-misc/menumaker
x11-misc/tint2
x11-misc/xdg-utils
x11-misc/xkeyboard-config
x11-misc/xscreensaver
x11-terms/xterm


The command:

Code:

head -n $(TEST_FOR_REDUNDANCY=false eix -cT | grep Found | cut -c6-9


Will find the number of packages obsoletes: and if i issue:

Code:

TEST_FOR_REDUNDANCY=false eix -cT | awk '{print $2}' | head -n $(TEST_FOR_REDUNDANCY=false eix -cT | grep Found | cut -c6-9) > nodatabase


it will output the obsoleted packages not in database.

and this command:
Code:

emerge --update --oneshot $(cat nodatabase)


Will ONLY update obsoleted packages.

Problem solved

I leave this if any user will need it.
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6281

PostPosted: Mon Apr 03, 2017 6:47 am    Post subject: Reply with quote

I am not exactly sure what you intend to do, but eix has a lot of possibilities to control the output:
Instead of -c, you can use many other options, for instance --only-names and/or --pure-packages. Perhaps you want to combine with -u
Code:
eix -u#*T

although for slotted packages, I suppose you actually want something like
Code:
eix -T* --format '<bestslotupgradeversions:NAMESLOT>'


That being said, note that what you are doing is probably rather wrong: eix has no idea about dependencies. If portage "misses" to upgrade a package with
Code:
emerge -NaDu --with-bdeps=y @world
you have done something wrong: Perhaps you forgot --with-bdeps=y (which I would recommend to put into your EMERGE_DEFAULT_OPTS) or you have packages which should have been either removed with
Code:
emerge --with-bdeps=y depclean
or you should do some
Code:
emerge -1O @changed-deps
or you have a mess with old binary packages.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum