« first day (1954 days earlier)      last day (3010 days later) » 

 
9 hours later…
2:31 PM
Hello guys. I want to run a linux distro on my android. I want it for Python and automation. Any recs?
 
 
6 hours later…
8:08 PM
I have what might be a very basic beginner level question about how to safely uninstall and remove from CentOS 7 an application that was installed from a tar.gz file. But for some reason, the question is not inspiring anyone to answer it. Is someone on here willing to guide me closer to a solution?
0
Q: How does one remove a tar-installed Node.js from CentOS 7?

CodeMedA CentOS 7 server has v0.12.7 of Node.js installed, and the installation was done using a tar. This is leading to conflicts when I try to install a more modern version of Node.js using yum. What specific steps need to be taken (i.e. what specific commands need to be typed) to safely remove the ...

 
8:31 PM
@CodeMed In general there is no good way to do this. Which is part of why package management systems exist. Having said that, try running a make install (if that is applicable) in verbose mode, and save a log of the output.
This may give you an indication, at least, of where things have been installed.
I don't know the details of the package build system in question, so without looking I cannot say more.
 
where do i navigate to before typing make install, and how do I make it verbose? Also, are you sure you mean make install and not make uninstall? Thank you, by the way.
make install VERBOSE=1
is that what I type? and in the /home.user/node_delete directory?
here is the log of what I typed:
[root@localhost node_delete]# make install VERBOSE=1
make: *** No rule to make target `install'. Stop.
[root@localhost node_delete]#
 
@CodeMed Hold your horses. Take a look at the source directory. What directions do they offer for the installation?
Having untarred that tarball, there's a make target in there, and it's pretty simple.
 
today I got the new file with: wget nodejs.org/dist/v0.12.7/node-v0.12.7-linux-x64.tar.gz
I do not know where the original tar.gz came from, as that was done a long time ago and there are no records
 
Though you want to run make first, I think. Maybe in a clean chroot so you can easily see what is going on.
@CodeMed Ok, so to be clear, the installation was done from a tar file, but you no longer have that tar file?
Do you have the approximate date of that installation?
 
My understanding is that the installation was originally done with a tar file, but that I no longer have the original tar file. I could only guess the original date.
 
8:45 PM
@CodeMed Well, look at the date of the last change of any of the installed files.
 
The notes that I have are from a yum install of v0.10.30 on January 3rd. But that is a different version that was apparently removed.
 
In any case, try running make and make install in a chroot with the tar file you have.
That should give you a good idea of where the files were put.
 
I am a self taught linux person who has been working in linux for a few years. I can read instructions, but I always learn as i go. ... so how do i install a chroot?
 
@CodeMed Um, on a RH system, not sure. On a Debian system, I'd use sbuild or something.
You don't have to use a chroot. You could use Virtualbox. But a chroot is low overhead.
 
ok... I am in a windows host with centos 7 inside virtualbox. This virtualbox centos 7 is my devbox computer.
 
8:50 PM
@CodeMed Oh. In that case, set up another fresh virtualbox, I suppose.
Is the installation in question regarding the centos 7 virtualbox?
 
yes this problem is in the virtualbox centos 7.
 
Ah. Well, if you test in that same virtualbox (which is presumably some production thing anyway) you run the risk of creating additional confusion.
 
i thought to create a new virtualbox centos 7 and just port everything over to it, but that seems so extreme, and i would like to actually learn to solve problems instead of running away every time it gets hard
 
And in your chroot, consider putting the relevant file/directory areas under version control. So you'll easily be able to see what files were added.
@CodeMed Oh, I'm not suggesting that. What's the context of this virtualbox, though?
To be clear, I'm suggesting a new virtualbox only to diagnose your tar.gz install issue.
 
this is my notebook computer devbox
i am chatting with you from inside my virtualbox centos 7 devbox
 
8:53 PM
Is there are some reason you are using Windows as a host? You work in a Windows shop, perhaps?
 
If you must know, windows enables me to use ms office, and other tools that connect me with the nontechnical outside world. And keeping the virtualbox centos in the same machine enables me to carry one computer around instead of two.
 
@CodeMed Ah, Ok. And no, I don't need to know. I'm just being nosy.
Though Windows guest in a Linux host is also a valid paradigm.
Anyway, I hope my suggestion is clear.
 
I am part of the ABM Anyone But Microsoft Movement, but I make peace with the devil for ms office
 
(a) Set up some sort of Centos 7 installation (virtualbox, chroot, regular installation) doesn't matter.
(b) Put relevant parts of the fs under version control.
(c) untar the tarball. do make & make install.
(d) See what new files have appeared.
Sorry, it's not pretty, but tarballs rarely are.
 
Folks, since Android is in the Linux family, would this question be on-topic for Unix.SE ? I'm inclined to migrate it.
0
Q: How does Android able to communicate with IO Circuits

VikkiMHow does Android for mobile devices actually able to communicate with IO such as the integrated modem circuit built into the latest Qualcomm Snapdragon ARM core IC's ? Would it be through the CPU via interrupts and then the incoming data is copied to a buffer in RAM or could someone please explai...

 
8:57 PM
Next time, use the package system.
@NickAlexeev Would it be on topic at Android SE?
 
@FaheemMitha I doubt that it would. Android.SE is about usage, rather than developers.
 
@NickAlexeev Ok.
 
Step (b) is not clear to me. How and why do i do that? The other steps I can do, though it seems like a very convoluted approach. Perhaps you are teaching me that we should never install anything without yum.
 
@CodeMed Well, you could just search for the installed files if you prefer.
But if you want to do that, you don't need to post a question.
@CodeMed Are you familar with version control?
 
This was in my OP. Is this what you mean? :
[root@localhost ~]# cd /
[root@localhost /]# find . -type f -iname "*.tar"
find: ‘./run/user/1000/gvfs’: Permission denied
./opt/node-v0.12.7/deps/npm/node_modules/tar/test/dir-normalization.tar
./opt/node-v0.12.7/deps/npm/test/fixtures/gitignore-and-npmignore-2.tar
./opt/node-v0.12.7/deps/npm/test/fixtures/gitignore-and-npmignore.tar
./usr/local/lib/node_modules/npm/test/fixtures/gitignore-and-npmignore-2.tar
./usr/local/lib/node_modules/npm/test/fixtures/gitignore-and-npmignore.tar
./usr/local/lib/node_modules/npm/node_modules/tar/test/dir-normalization.tar
 
9:01 PM
You do it (as I said already) to see what new files have appeared. Put all files in the relevant directories (/usr/local for example) under version control. Then when new files are installed, the version control system won't know about them. And they'll show up. In Mercurial with a ? in front. Possibly in git too.
 
I have not needed to use version control, so I just have the basic definition
 
@CodeMed No, I meant the installed files.
Not the tarball.
I'm not suggesting my method is a good method. But I don't think there are any good options here.
 
Hi everyone, just a quick question. I have an IP-address, say it's 8.8.8.8. What would be the proper name for 8.8.8.0? Is that a base IP? Main IP? Block name? Please help me figure out
 
Thank you. I really appreciate your patience. ..... I feel like I REALLY STEPPED IN IT. ... But I want to make it easy for you to help me, so I do not not want to complain and make it harder. .... I just wonder why I cannot do something easier instead of multiple of us spending the better part of a day trying to do a simple uninstall with many convoluted commands and VMs.
 
@CodeMed Well, there might be better approaches to this. But I'm not aware of them.
I rarely do tarball installs, precisely for these sorts of reasons.
Here's an alternative suggestion. Look at an rpm of the relevant software.
With the same version if possible. Extract the list of files it will install. Change /usr -> /usr/local in that list. Then search for those.
This is a less reliable approach, but is faster and might work.
"Look at" -> "look for", I guess.
 
9:09 PM
I am creating a new virtualbox installation with new centos, if i can find the iso when i get to that step. if you are willing and available to talk me through this, I will do this approach that you say is better
 
@CodeMed Well, I'll need to go to sleep at some point. But sure, if I'm around.
 
Are the local shell gurus around?
0
Q: Trap ERR only works once?

kojiroI'm writing a script that waits until a bunch of directories exist before starting a service. It basically consists of an infinite loop that breaks at the end, or continues if any of the needed directories aren't found. Simplified, the algorithm itself looks like loop_while_false() { trap co...

Hmm. Looks like Stéphane Chazelas hasn't been here in a long time.
 
@FaheemMitha I am installing CentOS 7 in a new VM now
 
Ok.
@muru Probably busy finding new bugs.
 
9:52 PM
@FaheemMitha I have installed centos 7 in a new virtualbox vm which is now running.
The web browser in the VM is able to connect to the internet and load web pages, but typing yum clean all && tum update results in something that says Another app is currently holding the yum lock.
 
@CodeMed Huh, that's weird.
Did you check for whether yumis running in the background or something? Are you sure the installation is complete?
Try ps aux | grep yum or similar.
 
packagekit is running it. another unix.se post says to systemctl stop it, then remove it. i cannot cut and paste across virtual machines, so i will just try that now and report back
 
@CodeMed Is it finishing up something? If so, you should leave it.
 
It does not say if it is finishing something, but the message keeps repeating, even when I retry after several minutes. It might just be a remnant of the recent install.
systemctl stop packagekit results in a message saying packagekit is not installed as a service. same with packagekitd.
Packagekit is running as process id 14200, so i could try to kill -9 14200
 
Oh. Sorry, can't help with that at all. I haven't used a RH based system in over 15 years. And I have no idea what packagekit is.
 
10:04 PM
kill -9 14200 worked. now i am doing yum clean all && yum update to clean everything up. Where should I be looking to find version control software to do what you suggest in you (b) above?
 
@CodeMed If you don't know vcs at all, that could be a bit of an adventure.
Have you never used Git or Mercurial?
 
git clone url-of-some-cool-code is a good friend, but that is all i do with git
 
Ah. Well, I'm a Mercurial user. With mercurial, you could do something like:
cd /usr/local, hg init, hg add, hg ci -m "added files". But if you don't have any experience with this stuff, you probably won't know what to do if something unexpected happens.
BTW, the stuff separated by commas are separate commands.
 
Section 1.4 of the following link says how to install mercurial with yum. I am inclined to try the yum approach given that this whole mess is from going outside of yum in the first place: mercurial-scm.org/wiki/Download
 
@CodeMed Oh, you definitely want to use yum.
 
10:11 PM
The new VM is slowly fulfilling the yum clean all && yum update request. When it is done, I will yum install mercurial, and then report back here
 
@CodeMed Ok. I'll probably be gone/asleep by then. But feel free to ask me here tomorrow, if you want.
Bear in mind there are other people here, and on the site, many of whom know more than I do.
 
@FaheemMitha Thank you for your help. Yes, I know there are other people. But sometimes it seems hit and miss in terms of who is in the frame of mind to look at something in the same time period in which a questioner posts a question. Also, communicating with folks like you helps a questioner frame higher quality questions that might be easier for the people you mention to answer.
 
@CodeMed Well, bear in mind that few people hang out in chat. And most of those are not here at any given time.
And weekends aren't the best time to catch people, anyway.
 
@FaheemMitha For reference, roughtly how many hours from now do you anticipate being around again? 10 hours? I do not need to know your location, but it is daytime where I am. I might check my phone in the middle of the night if I know it is morning your time.
 
Why did unix.stackexchange.com/questions/262177/… get so many downvotes? It's not obvious
 
10:21 PM
@CodeMed I'm in India. I'll be around again maybe in 10 hours or so. Maybe a bit less.
If you write stuff here, I'll see it eventually.
 
@NickAlexeev Programming is off-topic here (go to Stack Overflow), and Android is also off-topic here (go to Android Enthusiasts)
@CodeMed if you want to get help without time constraints, ask on the site
 
@Gilles I did ask on the main site, but the question did not get an answer, so I asked here, perhaps even only to improve the question so that someone answers it there. Here is the link:
0
Q: How does one remove a tar-installed Node.js from CentOS 7?

CodeMedA CentOS 7 server has v0.12.7 of Node.js installed, and the installation was done using a tar. This is leading to conflicts when I try to install a more modern version of Node.js using yum. What specific steps need to be taken (i.e. what specific commands need to be typed) to safely remove the ...

 
@CodeMed Ugh. Lesson for the future: never install anything in /usr without going through the package manager, except under /usr/local.
 
after all what site is best to talk about windows azure web apps?
i don't know where to post my questions anymore
 
I recommend using stow for all non-package-manager installations. With stow, each installation has its own directory, and the stow command creates symbolic links under /usr/local. That way uninstallation is easy.
@celsoap7 I don't know, but surely not on a site that's about Unix.
 
10:30 PM
sorry, wrong window :/
I'm embarrassed now
 
@CodeMed wait, was the earlier installation under /usr/local? What's the problem then? Why not just remove /usr/local/bin/node and /usr/local/lib/node_modules?
and whatever else was in that tar
 
@Gilles I created a new virtualbox CentOS 7 VM to follow @FaheemMitha 's advice above. Then I typed yum clean all && yum update to bring the new CentOS 7 VM up to date. It is currently slowly fulfilling the clean and update request.
@Gilles I do not remember how the old v0.12.7 was installed. And since I am still a beginner after a couple years of this, I thought I should ask here instead of just blindly deleting folders. In Windows, for example, simply deleting application files causes problems because you are supposed to use the operating system's tools for safely removing programs.
 
@CodeMed If it's under /usr then use the package manager. If it's under /usr/local then it's your responsibility.
I don't know node, so I can't tell you if there are additional things it might have set up (e.g. under /etc or /var).
 
@CodeMed Actually, you might want to put /usr/bin and /var/ and /etc under vfersion control too. Though for /etc you can use etckeeper.
Though I doubt it will install in /var. This is a js library, right?
 
10:47 PM
@Gilles I think I will remain kinda stuck until the other VM finishes its yum clean all and yum update.
@Gilles But yes, Node.js is a server for javascript, much like tomcat is a server for java
@Gilles My understanding is that front end servers use Node.js to manage fulfillment of client requests for JavaScript apps, which of course ultimately run in the client browser. Thus Node.js enables an app to be separated into different servers for front end and backend components of a cloud app
 
 
1 hour later…
11:51 PM
@Gilles I finished creating and configuring the new CentOS 7 virtual machine. I also reported all my steps, along with my guesses for specific steps to take from here as an addition to the end of my OP. If you look carefully, you will see that I added an hr line --------------------------------------- before a line that includes @FaheemMitha that marks all the new content.
@Gilles Are you willing to review progress and plans to help me identify the specific list of commands to type to generate the list of files that are created during the tar installation of v0.12.7? Here is the link:
1
Q: How does one remove a tar-installed Node.js from CentOS 7?

CodeMedA CentOS 7 server has v0.12.7 of Node.js installed, and the installation was done using a tar. This is leading to conflicts when I try to install a more modern version of Node.js using yum. What specific steps need to be taken (i.e. what specific commands need to be typed) to safely remove the ...

 
@CodeMed did you install a binary or did you compile from source? your question isn't clear
 

« first day (1954 days earlier)      last day (3010 days later) »