View previous topic :: View next topic |
Author |
Message |
natanver n00b
Joined: 17 Jul 2012 Posts: 47
|
Posted: Thu Feb 05, 2015 10:34 am Post subject: how to remove a package that's no longer in portage ? |
|
|
I want to remove a package (media-libs/pdflib)
perl-cleaner is complaining about not finding the ebuild (media-libs/pdflib was removed from portage)
How to proceed ?
Regards,
Natan |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Thu Feb 05, 2015 10:45 am Post subject: |
|
|
Just unmerge it.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
natanver n00b
Joined: 17 Jul 2012 Posts: 47
|
Posted: Thu Feb 05, 2015 11:13 am Post subject: |
|
|
John R. Graham wrote: | Just unmerge it.
- John |
I did. But for perl-cleaner the package is still there (?)
Code: | emerge: there are no ebuilds to satisfy "media-libs/pdflib". |
|
|
Back to top |
|
|
Roman_Gruber Advocate
Joined: 03 Oct 2006 Posts: 3846 Location: Austro Bavaria
|
Posted: Thu Feb 05, 2015 11:52 am Post subject: |
|
|
please |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Thu Feb 05, 2015 11:59 am Post subject: |
|
|
emerge isn't telling you that package is still there.
emerge is telling you media-libs/pdflib has no more ebuild in your tree.
so if you don't have a package and emerge wants it even you didn't ask it, someone asked to get that package.
if it's not you, it's then a dependency of someone but emerge should had tell you who is that someone in the form "require by package/xxx".
ask emerge to upgrade it so it loose its dependency over the "not in the tree" package or remove it as it should probably be out of the tree too. |
|
Back to top |
|
|
natanver n00b
Joined: 17 Jul 2012 Posts: 47
|
Posted: Thu Feb 05, 2015 1:19 pm Post subject: |
|
|
the dependency is libperl
I need to run perl-cleaner.
Code: |
* Locating packages for an update
* Locating ebuilds linked against libperl
* Adding to list: media-libs/pdflib:5
* check: module /usr/lib64/perl5/site_perl/5.12.2/x86_64-linux-thread-multi/pdflib_pl.a
<snip>
* Adding to list: www-apps/swish-e:0
* check: module /usr/lib64/perl5/vendor_perl/5.12.2/x86_64-linux-thread-multi/SWISH/API.pm
|
So perl-cleaner is going to run:
Code: | emerge -vD1 --backtrack=30 -p media-libs/pdflib:5 <snip> www-apps/swish-e:0 |
But I don't want pdflib and swish-e anymore.
How can I tell emerge to skip those two packages ? |
|
Back to top |
|
|
natanver n00b
Joined: 17 Jul 2012 Posts: 47
|
Posted: Thu Feb 05, 2015 1:45 pm Post subject: |
|
|
krinn wrote: |
ask emerge to upgrade it ...
|
what should be upgraded ? dev-lang/perl-5.18.2-r1:0/5.18 ?
krinn wrote: |
remove it ...
|
What do you mean? Can I just delete the file:
/usr/lib64/perl5/site_perl/5.12.2/x86_64-linux-thread-multi/pdflib_pl.a ? |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Thu Feb 05, 2015 1:50 pm Post subject: |
|
|
natanver wrote: | What do you mean? Can I just delete the file:
/usr/lib64/perl5/site_perl/5.12.2/x86_64-linux-thread-multi/pdflib_pl.a ? |
mv dont_want_this_file_anymore /somewhere
will gave the same result, but more safe no? |
|
Back to top |
|
|
natanver n00b
Joined: 17 Jul 2012 Posts: 47
|
Posted: Thu Feb 05, 2015 2:20 pm Post subject: |
|
|
I moved that file. (I renamed the folder)
But when I re-run perl-cleaner, it's again added to the list
Code: |
* Adding to list: media-libs/pdflib:5
* check: module /usr/lib64/perl5/site_perl/5.12.2/x86_64-linux-thread-multi/pdflib_pl.a
|
are results cached ??? |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Thu Feb 05, 2015 10:51 pm Post subject: |
|
|
Have you done an emerge world lately? |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21630
|
Posted: Thu Feb 05, 2015 11:25 pm Post subject: |
|
|
OP: several posters have told you to remove pdflib, but you have not said what goes wrong when you try to unmerge it. Please provide the full output of emerge --unmerge media-libs/pdflib www-apps/swish-e. |
|
Back to top |
|
|
natanver n00b
Joined: 17 Jul 2012 Posts: 47
|
Posted: Sat Feb 21, 2015 5:37 pm Post subject: |
|
|
I managed to solve the problem.
what I did:
placed 2 old packages (swish-e and pdflib) in /usr/local/portage/ (ebuild found in the 'attic')
emerge --deselect --ask $(qlist -IC 'perl-core/*')
emerge -1a $(qlist -IC 'virtual/perl-*')
perl-cleaner --all -- --ask
Thanks for the help. |
|
Back to top |
|
|
|