LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-28-2010, 07:06 AM   #1
arisof
LQ Newbie
 
Registered: Oct 2010
Posts: 7

Rep: Reputation: 0
Linux program installation


Hi there all,

I'm curious about sth that lets say you installed a program on any linux distribution via that program's own installer and after installation you re-run the installer again and it says you that you have already installed it and ask about options like repair or uninstall.I'm just curious that how can it understand that I have already installed it. I was just guessing that it can/may understand thanks to env. variables but when u list env variables you cannot see anything related to it. I hope I cud describe the thing I'm curious about. If anybody has any idea about it, I wud be happy to hear. Thanks...
 
Old 10-28-2010, 07:14 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Well it just sees that the files are already there typically, nothing that clever there is no central registry or anything like that.

BTW, is it really too hard to write proper words? "sth"? "wud"? "u"? This isn't a text message.
 
Old 10-28-2010, 07:43 AM   #3
arisof
LQ Newbie
 
Registered: Oct 2010
Posts: 7

Original Poster
Rep: Reputation: 0

I asked this question because I had installed a program with its installer and then accidentally deleted all the files including installation directory. I downloaded it and tried to reinstall it but it says I have already installed it and indicates the directory which I had deleted. Thats why I asked how it can understand or if there would be a way to find a file or variable that I can edit.
 
Old 10-28-2010, 08:00 AM   #4
fbobraga
Member
 
Registered: Jul 2010
Location: São Paulo - Brasil
Distribution: Debian 7 / Crunchbang 11
Posts: 229

Rep: Reputation: 41
@OP: you installed a .deb file? what is the "program's own installer" that you refers to?

* please say what distribution you are using
 
Old 10-28-2010, 08:03 AM   #5
arisof
LQ Newbie
 
Registered: Oct 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Red Hat Enterprize Linux
 
Old 10-28-2010, 08:06 AM   #6
arisof
LQ Newbie
 
Registered: Oct 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Installer is a binary file which you execute and a gui comes up later on. Using the gui you specify the installation directory and other properties.
 
Old 10-28-2010, 08:09 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Erm, yes we know what an installer generically IS, what are YOU actually doing?
 
Old 10-28-2010, 08:12 AM   #8
arisof
LQ Newbie
 
Registered: Oct 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Hey acid_kewpie, what is YOUR problem? R u here to help people with their problems or what?
 
Old 10-28-2010, 08:18 AM   #9
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
I'm going to venture a guess.. Is it possible that the package manager thinks the package is installed? Maybe using your package manager's "remove" or "uninstall" or "cleanup" function will clean up the situation, and then you could re-install the thing?

EDIT: And also, does this "installer" you used the first time, have an "uninstall" option? Maybe a command-line option or a command-line --help option? There must be documentation for it. Maybe if you run the installer with the --extract option (or a similar option, like with the nvidia driver for example) it will extract but not install, and you might find documentation in the extracted contents.

Sorry if this doesn't help,

Last edited by GrapefruiTgirl; 10-28-2010 at 08:21 AM.
 
Old 10-28-2010, 08:24 AM   #10
arisof
LQ Newbie
 
Registered: Oct 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Well, thanks for your help. I'm afraid it is not related to it. I had been downloading and installing Synopsys Tools to the computer of our research lab. As I'm new to Linux I was doing all installation tasks within Root account. Then I read it somewhere and also asked it to my friend that installing things using root account is not a good thing to do. So I deleted all the installation files. Created a new user and downloaded packages and started to reinstall them. Then when it was time to install one specific package it told me that I had already installed it. And it was showing the installation path to the directory I had deleted. So that was why I thought if I can understand how it still redirects the installation directory, then maybe I can do somethings to install it to the new directory.
 
Old 10-28-2010, 08:35 AM   #11
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Perhaps `ls -R /etc | grep -i synopsis` or `grep -iR /var/log/* /etc/*` or something like these, for signs of "synopsis" or similar entries in a configuration file, install logfile, lockfile, etc.? It's highly improbable that any variable is being used for this (if anything) -- more likely a file is being saved/read somewhere.

Good luck!
 
Old 10-28-2010, 08:37 AM   #12
arisof
LQ Newbie
 
Registered: Oct 2010
Posts: 7

Original Poster
Rep: Reputation: 0
I tried uninstall and repair options but there was no help. I opened that binary file and tried to understand the code but after some point there are no more codes, just full of ASCII symbols. Maybe encrypted, I dont know. I sent an email about this problem to Synopsys but not sure If they will write back. Thanks for your suggestions.

EDIT: I will try the things you said above. I hope it will help us.

Last edited by arisof; 10-28-2010 at 08:39 AM.
 
Old 10-28-2010, 03:30 PM   #13
alan99
Member
 
Registered: Mar 2010
Distribution: Debian
Posts: 180

Rep: Reputation: 31
Quote:
Originally Posted by arisof View Post
Well, thanks for your help. I'm afraid it is not related to it. I had been downloading and installing Synopsys Tools to the computer of our research lab. As I'm new to Linux I was doing all installation tasks within Root account. Then I read it somewhere and also asked it to my friend that installing things using root account is not a good thing to do. So I deleted all the installation files. Created a new user and downloaded packages and started to reinstall them. Then when it was time to install one specific package it told me that I had already installed it. And it was showing the installation path to the directory I had deleted. So that was why I thought if I can understand how it still redirects the installation directory, then maybe I can do somethings to install it to the new directory.
Your friend is misinformed as installing software IS
normally done by the root user. This is for security so casual users cannot cause mischief by deleting key programs or installing unwanted programs. The package manager needs to be run as root. What should be avoided if possible, is a binary installer/script. If something goes wrong it can be hard to fix. If possible you should use packages from your distribution repository.
 
Old 10-28-2010, 03:48 PM   #14
alan99
Member
 
Registered: Mar 2010
Distribution: Debian
Posts: 180

Rep: Reputation: 31
Searching for Synopsys, it appears this is a very complicated and expensive program, and is not free. It is hard to believe that you 'downloaded' it. If you have a valid copy of this program then you have probably destroyed your license key when you deleted stuff. If you did pay for this software, you should contact the vendor for support for this program as no one on this forum will be able to help you.
 
1 members found this post helpful.
  


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
PGP installation for Mandriva Linux 64 bit program Gins Linux - General 2 05-22-2006 02:08 AM
Linux Installation Program ronanio Linux - Distributions 1 02-11-2005 09:01 AM
linux filesystem and program installation vedace Linux - Software 9 07-27-2004 09:42 AM
SuSE installation (program installation, not os) jasonmantey Linux - Newbie 4 04-15-2004 02:22 PM
Mandrake 9.2 installation program crashes in the final step of the installation iqbala Mandriva 0 12-03-2003 01:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:20 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