LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-02-2017, 08:36 AM   #46
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 158Reputation: 158

Sudo...

Code:
sudo rm -rf /opt/pt
 
Old 03-02-2017, 08:39 AM   #47
danishparvez
LQ Newbie
 
Registered: Feb 2017
Posts: 9

Rep: Reputation: Disabled
Thanks a lot. I really appreciate it.
Do you know any website or anywhere on internet that I can learn to use linux.
 
Old 03-02-2017, 09:01 AM   #48
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 158Reputation: 158
Resources are plenty on the internet (i use google when i have something to look up), as you see on forums you will get help if you come with a specific well defined problem.
Honestly to learn linux you have to use it and solve issues you encounter as you go. It's not mandatory to use it as your main OS if you are not that familiar with it, you can use it in a virtual machine. I don't recommend dual booting either as that is too much of a hassle usually.
 
Old 03-02-2017, 11:03 AM   #49
danishparvez
LQ Newbie
 
Registered: Feb 2017
Posts: 9

Rep: Reputation: Disabled
Is it good generally if I use it as main OS coz honestly since I took it as a course in my studies I liked it from the very beginning and I stopped using windows since then as that was my main OS then
 
Old 03-04-2017, 06:51 AM   #50
Deixus
LQ Newbie
 
Registered: Feb 2017
Distribution: Debian
Posts: 7

Rep: Reputation: Disabled
Hi gradinaruvasile

This is my packets when put en the comman line "aptitude", the line --/java show up.

http://i1210.photobucket.com/albums/...4%20083928.png

Saludos!
 
Old 03-04-2017, 05:58 PM   #51
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 158Reputation: 158
Quote:
Originally Posted by Deixus View Post
Hi gradinaruvasile

This is my packets when put en the comman line "aptitude", the line --/java show up.

http://i1210.photobucket.com/albums/...4%20083928.png

Saludos!
Well the idea is to find your actual "javaws' executable then find the package from which it came.
The following example is from my system which runs Debian:
First you find the actual "javaws":
Code:
$which javaws
/usr/bin/javaws
laca@laca-desktop:~$ ls -al /usr/bin/javaws
lrwxrwxrwx 1 root root 24 May  2  2016 /usr/bin/javaws -> /etc/alternatives/javaws
Then you will have to find the exact executable - because java and it's companion packages are using the "alternatives" system that permits you to have multiple executables of different versions installed in parallel and you can select which one launches "javaws" in this case. Basically you have to find the REAL executable at the end of a possible chain of links.
Code:
laca@laca-desktop:~$ ls -al /etc/alternatives/javaws
lrwxrwxrwx 1 root root 48 May  2  2016 /etc/alternatives/javaws -> /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/javaws
$ ls -al /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/javaws
-rwxr-xr-x 1 root root 2756 Jan 14 17:46 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/javaws
Now that we found the REAL executable, we will do a reverse search for it's "parent" package:
Code:
laca@laca-desktop:~$ dpkg --search /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/javaws
icedtea-netx:amd64: /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/javaws
Now we will look at the package version:
Code:
$apt-cache policy icedtea-netx
icedtea-netx:
  Installed: 1.6.2-3.1
  Candidate: 1.6.2-3.1
  Version table:
 *** 1.6.2-3.1 500
        500 http://ftp.debian.org/debian testing/main amd64 Packages
          2 http://ftp.debian.org/debian unstable/main amd64 Packages
        100 /var/lib/dpkg/status
 
Old 03-07-2017, 11:35 AM   #52
Deixus
LQ Newbie
 
Registered: Feb 2017
Distribution: Debian
Posts: 7

Rep: Reputation: Disabled
This is the output when put en the command line "which javaws" and "ls -al /usr/bin/javaws"

Code:
estudiante@debian:~$ sudo which javaws
/usr/bin/javaws
estudiante@debian:~$ ls -al /usr/bin/javaws
lrwxrwxrwx 1 root root 24 dic 12 17:02 /usr/bin/javaws -> /etc/alternatives/javaws
Ok, following your instruction this is the output when put en the command line "ls -al /etc/alternatives/javaws"
and "sudo ls -al /usr/lib/jvm/java-7-openjdk-i386/jre/bin/javaws"

Code:
estudiante@debian:~$ sudo ls -al /etc/alternatives/javaws
lrwxrwxrwx 1 root root 47 dic 12 17:02 /etc/alternatives/javaws -> /usr/lib/jvm/java-7-openjdk-i386/jre/bin/javaws
estudiante@debian:~$ sudo ls -al /usr/lib/jvm/java-7-openjdk-i386/jre/bin/javaws
-rwxr-xr-x 1 root root 2635 may 26  2016 /usr/lib/jvm/java-7-openjdk-i386/jre/bin/javaws
The following line is when put en the command line "sudo dpkg --search /usr/lib/jvm/java-7-openjdk-i386/jre/bin/javaws"

Code:
estudiante@debian:~$ sudo dpkg --search /usr/lib/jvm/java-7-openjdk-i386/jre/bin/javaws
icedtea-netx:i386: /usr/lib/jvm/java-7-openjdk-i386/jre/bin/javaws
When put in the command line "apt-cache policy icedtea-netx" show up this:

Code:
estudiante@debian:~$ apt-cache policy icedtea-netx
icedtea-netx:
  Instalados: 1.5.3-1
  Candidato:  1.5.3-1
  Tabla de versión:
 *** 1.5.3-1 0
        500 http://httpredir.debian.org/debian/ jessie/main i386 Packages
        100 /var/lib/dpkg/status
Sorry for the late answer and my bad english.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
installing packet tracer mehrd@d Linux - Desktop 1 02-02-2014 08:28 AM
CISCO Packet Tracer kujirasan Linux - Software 4 07-11-2013 09:44 PM
packet tracer tgz specialized Slackware 5 10-04-2011 02:24 PM
Cisco packet Tracer kujirasan Linux - Software 8 03-15-2011 07:57 AM
Packet Tracer in ubuntu 8.04 mick463 Linux - Newbie 0 09-06-2008 04:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration