does eselect lists not installed icedtea?

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :)

Moderator: Moderators

Post Reply
msdobrescu
Old Dear Hen
Posts: 647
Joined: Sun Aug 21, 2011 8:48

does eselect lists not installed icedtea?

Post by msdobrescu » Fri Dec 28, 2018 16:57

Hello,

I have the following output:

Code: Select all

eselect java-vm list
Available Java Virtual Machines:
grep: /usr/share/java-config-2/vm/icedtea-7: No such file or directory
grep: /usr/share/java-config-2/vm/icedtea-bin-7: No such file or directory
  [1]   icedtea-7 
  [2]   icedtea-bin-7 
  [3]   icedtea-bin-8  system-vm
I have no package to remove for [1] and [2] above.

Code: Select all

equo search --installed icedtea
╠  @@ Searching...
╠      @@ Package: dev-java/icedtea-bin-3.9.0-r1 branch: 5, [__system__] 
╠          Installed:     version: 3.9.0-r1 ~ tag: NoTag ~ revision: 0
╠          Slot:          8
╠          Homepage:      http://icedtea.classpath.org 
╠          Description:   A Gentoo-made binary build of the 
╠                         IcedTea JDK 
╠          License:       GPL-2-with-classpath-exception
╠      @@ Package: dev-java/icedtea-sound-1.0.1 branch: 5, [__system__] 
╠          Installed:     version: 1.0.1 ~ tag: NoTag ~ revision: 0
╠          Slot:          0
╠          Homepage:      http://icedtea.classpath.org 
╠          Description:   Plugins for javax.sound 
╠          License:       GPL-2-with-linking-exception
╠      @@ Package: dev-java/icedtea-web-1.6.2 branch: 5, [__system__] 
╠          Installed:     version: 1.6.2 ~ tag: NoTag ~ revision: 1
╠          Slot:          0
╠          Homepage:      http://icedtea.classpath.org 
╠          Description:   FOSS Java browser plugin and Web 
╠                         Start implementation 
╠          License:       GPL-2 GPL-2-with-linking-exception LGPL-2
╠   Keywords:  icedtea
╠   Found:     3 entries
[code]

How to cleanup?

Thanks.

User avatar
sabayonino
Sagely Hen
Posts: 3301
Joined: Sun Sep 21, 2008 1:12
Location: Italy
Contact:

Re: does eselect lists not installed icedtea?

Post by sabayonino » Fri Dec 28, 2018 17:43

dead deps in your system

Code: Select all

$ ls /usr/share/java-config-2/vm
$ ls /usr/share/java-config-2/vm
... icedtea-8  icedtea-bin-8  oracle-jre-bin-1.8
check icedtea

Code: Select all

equo q belongs /usr/share/java-config-2/vm/icedtea-7
╠  @@ Ricerca Appartenenza
╠   Keyword:  /usr/share/java-config-2/vm/icedtea-7
╠   Trovati:  0 voci
and

Code: Select all

equo q belongs /usr/share/java-config-2/vm/icedtea-bin-7
╠  @@ Ricerca Appartenenza
╠   Keyword:  /usr/share/java-config-2/vm/icedtea-7
╠   Trovati:  0 voci
remove older
[Che Cos'è Il Calcolo Distribuito (BOINC)

BOINC ready ! Sabayon+BOINC = BILD ,my Sabayon spin :cyclops: - Ready to crunch for the Science everywhere :)

msdobrescu
Old Dear Hen
Posts: 647
Joined: Sun Aug 21, 2011 8:48

Re: does eselect lists not installed icedtea?

Post by msdobrescu » Fri Dec 28, 2018 23:31

Hi, thank you for replying.

Code: Select all

ls /usr/share/java-config-2/vm
icedtea-bin-8

Code: Select all

equo q belongs /usr/share/java-config-2/vm/icedtea-7
╠  @@ Belong Search
╠   Keyword:  /usr/share/java-config-2/vm/icedtea-7
╠   Found:    0 entries

Code: Select all

equo q belongs /usr/share/java-config-2/vm/icedtea-bin-7
╠  @@ Belong Search
╠   Keyword:  /usr/share/java-config-2/vm/icedtea-bin-7
╠   Found:    0 entries
Still no clues.

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

Re: does eselect lists not installed icedtea?

Post by Fitzcarraldo » Fri Jan 18, 2019 19:42

Code: Select all

[email protected] ~ $ eselect java-vm list
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

[email protected] ~ $ ls /usr/share/java-config-2/vm
icedtea-bin-8
[email protected] ~ $ ls -la  /usr/lib/jvm
total 184
drwxr-xr-x   2 root root   4096 Jan  7 00:16 .
drwxr-xr-x 159 root root 180224 Jan  7 11:38 ..
lrwxrwxrwx   1 root root     22 Oct 22 11:13 icedtea-bin-8 -> /opt/icedtea-bin-3.9.0
[email protected] ~ $
Check if you have any old symlinks in the directory /usr/lib/jvm/ and delete them if you do.

msdobrescu
Old Dear Hen
Posts: 647
Joined: Sun Aug 21, 2011 8:48

Re: does eselect lists not installed icedtea?

Post by msdobrescu » Sat Jan 19, 2019 10:14

Code: Select all

eselect java-vm list
Available Java Virtual Machines:
grep: /usr/share/java-config-2/vm/icedtea-7: No such file or directory
grep: /usr/share/java-config-2/vm/icedtea-bin-7: No such file or directory
  [1]   icedtea-7 
  [2]   icedtea-bin-7 
  [3]   icedtea-bin-8  system-vm
  
ls /usr/share/java-config-2/vm
icedtea-bin-8

ls -la  /usr/lib/jvm
total 292
drwxr-xr-x   2 root root   4096 Oct 31 23:34 .
drwxr-xr-x 292 root root 290816 Jan 18 09:35 ..
lrwxrwxrwx   1 root root     19 Aug 15  2013 icedtea-7 -> /usr/lib64/icedtea7
lrwxrwxrwx   1 root root     24 Jun  8  2013 icedtea-bin-7 -> /opt/icedtea-bin-7.2.3.9
lrwxrwxrwx   1 root root     22 Oct 13 21:14 icedtea-bin-8 -> /opt/icedtea-bin-3.9.0


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

Re: does eselect lists not installed icedtea?

Post by Fitzcarraldo » Sat Jan 19, 2019 13:05

Fitzcarraldo wrote:Check if you have any old symlinks in the directory /usr/lib/jvm/ and delete them if you do.

msdobrescu
Old Dear Hen
Posts: 647
Joined: Sun Aug 21, 2011 8:48

Re: does eselect lists not installed icedtea?

Post by msdobrescu » Sat Jan 19, 2019 13:09

Right, but they are not orphans, there are files in those paths. What should I do?
I usually try to uninstall the package that installed them, but I have no clue of that.

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

Re: does eselect lists not installed icedtea?

Post by Fitzcarraldo » Sat Jan 19, 2019 14:58

Delete the old symlinks in the directory /usr/llib/jvm/ (look at their file dates in the output you posted: 2013). Delete any redundant icedtea-bin-* directories. My sane, up-to-date installation has the following icedtea-bin directories:

Code: Select all

sabayon /home/fitzcarraldo # ls /opt/icedtea-bin-*
/opt/icedtea-bin-3.5.1:
jre  lib

/opt/icedtea-bin-3.7.0:
jre  lib

/opt/icedtea-bin-3.8.0:
jre  lib

/opt/icedtea-bin-3.9.0:
bin  include  jre  lib  man
You should regularly: a) update the local database containing a list of available packages and their versions; b) upgrade installed packages to their latest available version; c) check and fix dependencies and libraries; d) remove any old versions of installed packages:

Code: Select all

# equo update
# equo upgrade
# equo conf update
# equo deptest
# equo libtest
# equo upgrade --purge
# equo cleanup
I remove the packages that equo tells me to remove manually. I have found that sometimes the command ‘equo upgrade --purge‘ does not report all the packages that have to be removed manually. I therefore repeat that command a few times until no more packages are listed for removal.

Also, if you don't have it installed, install the package sys-apps/mlocate and periodically run the command 'updatedb' as root user to refresh the file index. Then you can use the command 'locate <filename>' to easily search for any file(s).

msdobrescu
Old Dear Hen
Posts: 647
Joined: Sun Aug 21, 2011 8:48

Re: does eselect lists not installed icedtea?

Post by msdobrescu » Sat Jan 19, 2019 22:03

Thanks, I know these, I actually do these too. Seems some things were left behind at some point. I don't know how much. I would have liked to clean them up, but seems difficult to track them.
As for ls /opt/icedtea-bin-*, in my case there are several directories (empty, just directories inside) left from all the previously installed versions. I think it's safe to delete those.

Post Reply