Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Clean out unused packages from Portage
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
lum-X
Tux's lil' helper
Tux's lil' helper


Joined: 07 Mar 2011
Posts: 103
Location: Tucson, USA || Prishtina Kosovo

PostPosted: Wed Sep 21, 2011 12:04 am    Post subject: Clean out unused packages from Portage Reply with quote

Hi,

in my system i have like 840 packages and i did a lot of things. i messed up a lot emerging and unemerging things so now i believe i have a lot of unused packages.

im looking at some scripts but i cat really understand them yet what they do and i dont want to break down smth then wait few hours to compile them again.

i just did a eclean-dist -d and i removed almost 1.8 gigs from my system.

is there a thread where i can get a script to remove unised packages

by the way is Portato or Porthole any good. im not planing to use them a lot cause i want to get used console more and reading manuals so that i can learn more about linux even though its just few months that im out ow windows except for gaming :p still a lot to learn and im loving gentoo just i dont have a clue what is going on most of the time besides fixin sometimes something :p
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Wed Sep 21, 2011 12:08 am    Post subject: Reply with quote

there is 'emerge --depclean'
however it should not be run blindly, as its method for figuring out packages that are no longer in use is far from perfect.

generally the recommendation is to do an "emerge -auDNv world", and then run 'emerge --depclean', then do a revdep-rebuild to fix anything depclean breaks

you can of course always do 'emerge --pretend --depclean' to see what it would remove, and anything it looks like it would remove where you're saying to yourself "well, not sure i want it to remove that, that sorta looks important", your instinct is probably correct, and as such in this case you should manually unmerge packages rather than relying on depclean
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
lum-X
Tux's lil' helper
Tux's lil' helper


Joined: 07 Mar 2011
Posts: 103
Location: Tucson, USA || Prishtina Kosovo

PostPosted: Wed Sep 21, 2011 12:21 am    Post subject: Reply with quote

ok i will give it a shot tomorrow cause its late here 2.20, i will also look how to view all installed packages. i know there is a way with gentoo toolkit :P

then i will look for packages that i want to remove. a long day awaits me tomorrow.

OK got this but i might unemerge chromium cause im not using it also delete all masked pacakges and see what will pop up then

Code:
lumx lumx # emerge -auDNv world

 * IMPORTANT: 4 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


These are the packages that would be merged, in order:

Calculating dependencies... done!

The following USE changes are necessary to proceed:
#required by media-libs/fontconfig-2.8.0-r1[doc], required by x11-libs/qt-gui-4.7.2, required by app-doc/doxygen-1.7.3[qt4], required by x11-libs/xcb-util-renderutil-0.3.8[doc], required by x11-libs/xcb-util-0.3.8, required by x11-libs/xcb-util-wm-0.3.8
>=app-text/docbook-sgml-utils-0.6.14-r1 jadetex

NOTE: This --autounmask behavior can be disabled by setting
      EMERGE_DEFAULT_OPTS="--autounmask=n" in make.conf.

Use --autounmask-write to write changes to config files (honoring CONFIG_PROTECT).

!!! The ebuild selected to satisfy "dev-lang/php" has unmet requirements.
- dev-lang/php-5.3.8::gentoo USE="berkdb bzip2 cli crypt ctype doc exif fileinfo filter gdbm hash iconv ipv6 json ldap (multilib) nls phar posix readline session simplexml spell sqlite ssl threads tokenizer truetype unicode xml zlib (-adabas) -apache2 -bcmath (-birdstep) -calendar -cdb -cgi -cjk -curl -curlwrappers -db2 (-dbmaker) -debug -embed (-empress) (-empress-bcs) -enchant (-esoob) -firebird -flatfile -fpm (-frontbase) -ftp -gd -gd-external -gmp -imap -inifile -interbase -intl -iodbc -kerberos -kolab -ldap-sasl -libedit -mhash -mssql -mysql -mysqli -mysqlnd -oci8 -oci8-instant-client -odbc -pcntl -pdo -pic -postgres -qdbm -recode -sapdb -sharedext -sharedmem -snmp -soap -sockets (-solid) -sqlite3 -suhosin (-sybase-ct) -sysvipc -tidy -wddx -xmlreader -xmlrpc -xmlwriter -xpm -xsl -zip"

  The following REQUIRED_USE flag constraints are unsatisfied:
    truetype? ( any-of ( gd gd-external ) ) exif? ( any-of ( gd gd-external ) )

  The above constraints are a subset of the following complete expression:
    truetype? ( any-of ( gd gd-external ) ) cjk? ( any-of ( gd gd-external ) ) exif? ( any-of ( gd gd-external ) ) xpm? ( gd ) gd? ( zlib !gd-external ) gd-external? ( !gd ) simplexml? ( xml ) soap? ( xml ) wddx? ( xml ) xmlrpc? ( any-of ( xml iconv ) ) xmlreader? ( xml ) xsl? ( xml ) ldap-sasl? ( ldap !oci8 ) adabas? ( odbc ) birdstep? ( odbc ) dbmaker? ( odbc ) empress-bcs? ( empress ) empress? ( odbc ) esoob? ( odbc ) db2? ( odbc ) sapdb? ( odbc ) solid? ( odbc ) kolab? ( imap ) mhash? ( hash ) phar? ( hash ) mysqlnd? ( any-of ( mysql mysqli pdo ) ) oci8? ( !oci8-instant-client !ldap-sasl ) oci8-instant-client? ( !oci8 ) qdbm? ( !gdbm ) readline? ( !libedit ) recode? ( !imap !mysql !mysqli ) firebird? ( !interbase ) sharedmem? ( !threads ) !cli? ( !cgi? ( !fpm? ( !apache2? ( !embed? ( cli ) ) ) ) )

(dependency required by "media-libs/libvpx-0.9.6[doc]" [ebuild])
(dependency required by "www-client/chromium-13.0.782.215" [installed])
(dependency required by "@selected" [set])
(dependency required by "@world" [argument])

 * IMPORTANT: 4 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Wed Sep 21, 2011 1:17 am    Post subject: Reply with quote

lum-X wrote:
ok i will give it a shot tomorrow cause its late here 2.20, i will also look how to view all installed packages. i know there is a way with gentoo toolkit :P


Code:

equery list


or, my preference

Code:

emerge portage-utils
qlist -CI

_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
lum-X
Tux's lil' helper
Tux's lil' helper


Joined: 07 Mar 2011
Posts: 103
Location: Tucson, USA || Prishtina Kosovo

PostPosted: Wed Sep 21, 2011 10:31 am    Post subject: Reply with quote

this is what i got after i deleted all everything at portage.use unmask, accept_keyword and mask.

Code:
lumx lumx # emerge -auDNv --autounmask world

 * IMPORTANT: 4 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


These are the packages that would be merged, in order:

Calculating dependencies... done!


[nomerge       ] gnome-base/gnome-2.32.1  USE="cups ldap policykit -accessibility -cdr* -dvdr* -mono"
[nomerge       ]  app-admin/pessulus-2.30.4
[nomerge       ]   dev-python/pygtk-2.24.0-r1  USE="doc* -examples -test"
[nomerge       ]    dev-python/pycairo-1.8.10  USE="doc* svg -examples -test"
[nomerge       ]     dev-python/sphinx-1.0.7  USE="doc -latex -test"
[ebuild  N     ]      dev-python/jinja-2.5.5  USE="doc -examples -i18n -vim-syntax" 429 kB
[ebuild  N     ]       dev-python/sphinx-1.0.7  USE="doc -latex -test" 2,233 kB
[ebuild   R    ]    dev-python/pycairo-1.8.10  USE="doc* svg -examples -test" 0 kB

Total: 3 packages (2 new, 1 reinstall), Size of downloads: 2,661 kB

 * Error: circular dependencies:

(dev-python/sphinx-1.0.7::gentoo, ebuild scheduled for merge) depends on
 (dev-python/jinja-2.5.5::gentoo, ebuild scheduled for merge) (buildtime)
  (dev-python/sphinx-1.0.7::gentoo, ebuild scheduled for merge) (buildtime)

It might be possible to break this cycle
by applying the following change:
- dev-python/jinja-2.5.5 (Change USE: -doc)

Note that this change can be reverted, once the package has been installed.

The following USE changes are necessary to proceed:
#required by dev-python/epydoc-3.0.1-r1[X], required by dev-python/dbus-python-0.83.2[doc], required by net-im/pidgin-2.10.0[dbus], required by @selected, required by @world (argument)
=dev-lang/python-2.7.1-r1 tk
#required by dev-util/netbeans-6.8-r1[netbeans_modules_ide], required by @selected, required by @world (argument)
=dev-vcs/subversion-1.6.17 java
#required by media-libs/fontconfig-2.8.0-r1[doc], required by gnome-base/libgnomeprint-2.18.8, required by gnome-base/libgnomeprintui-2.18.6, required by x11-libs/wxGTK-2.8.11.0[X,gnome], required by dev-util/codeblocks-10.05, required by @selected, required by @world (argument)
>=app-text/docbook-sgml-utils-0.6.14-r1 jadetex

NOTE: This --autounmask behavior can be disabled by setting
      EMERGE_DEFAULT_OPTS="--autounmask=n" in make.conf.

Use --autounmask-write to write changes to config files (honoring CONFIG_PROTECT).

 * IMPORTANT: 4 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

Back to top
View user's profile Send private message
lum-X
Tux's lil' helper
Tux's lil' helper


Joined: 07 Mar 2011
Posts: 103
Location: Tucson, USA || Prishtina Kosovo

PostPosted: Wed Sep 21, 2011 10:41 am    Post subject: Reply with quote

now i get this :D should i change doc to -doc at make.conf i like to have documentation.

this is my make.conf. if there is any suggestion what to change here is welcomed
Code:

# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer -msse4.1"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
MAKEOPTS="-j3"


USE="mmx sse sse2 ssse3 sse4_1 threads xvmc -eds icu X gnome dbus gtk udev sqlite qt4 -kde aac acpi alsa apm bzip2 cdda -cdr dvd -dvdr flac mp3 lm_sensors nsplugin mp4 mp3 mpeg jpeg x264 doc fontconfig -accessibility"




INPUT_DEVICES="evdev"
VIDEO_CARDS="nvidia"
ALSA_CARDS="hda-intel"
ACCEPT_LICENSE="~amd64 skype-eula dlj-1.1 Nero-EULA-US"




Code:
lumx lumx # emerge -auDNv world

 * IMPORTANT: 4 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


These are the packages that would be merged, in order:

Calculating dependencies... done!


[nomerge       ] gnome-base/gnome-2.32.1  USE="cups ldap policykit -accessibility -cdr* -dvdr* -mono"
[nomerge       ]  app-admin/pessulus-2.30.4
[nomerge       ]   dev-python/pygtk-2.24.0-r1  USE="doc* -examples -test"
[nomerge       ]    dev-python/pycairo-1.8.10  USE="doc* svg -examples -test"
[nomerge       ]     dev-python/sphinx-1.0.7  USE="doc -latex -test"
[ebuild  N     ]      dev-python/jinja-2.5.5  USE="doc -examples -i18n -vim-syntax" 429 kB
[ebuild  N     ]       dev-python/sphinx-1.0.7  USE="doc -latex -test" 2,233 kB
[ebuild   R    ]    dev-python/pycairo-1.8.10  USE="doc* svg -examples -test" 0 kB

Total: 3 packages (2 new, 1 reinstall), Size of downloads: 2,661 kB

 * Error: circular dependencies:

(dev-python/sphinx-1.0.7::gentoo, ebuild scheduled for merge) depends on
 (dev-python/jinja-2.5.5::gentoo, ebuild scheduled for merge) (buildtime)
  (dev-python/sphinx-1.0.7::gentoo, ebuild scheduled for merge) (buildtime)

It might be possible to break this cycle
by applying the following change:
- dev-python/jinja-2.5.5 (Change USE: -doc)

Note that this change can be reverted, once the package has been installed.

 * IMPORTANT: 4 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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