Uninstall RoR

I want to uninstall RoR completely. And did as following:

$ sudo apt-get remove ruby $ sudo gem uninstall rails $ sudo apt-get remove rubygems

According to these commands its uninstalled but while checking rails and ruby version it shows following result:

$ ruby -v Traceback (most recent call last):   File "/usr/lib/command-not-found", line 10, in <module>     import CommandNotFound ImportError: No module named CommandNotFound

$ rails -v Traceback (most recent call last):   File "/usr/lib/command-not-found", line 10, in <module>     import CommandNotFound ImportError: No module named CommandNotFound

Anyone help me to uninstall Ruby on Rails completely.

You have, but you have a problem with command-not-found which is run when any command is not found. I expect you will see the same thing if you type any nonsense command. Googling for the error message produced this which may be of help, though I have not studied it in detail.

If that does not help then some more googling by be helpful, but either way this is not a rails problem so you might be best to seek help elsewhere.

Colin

This means RoR is uninstalled properly or not.

This means RoR is uninstalled properly or not.

Yes I believe so, certainly the rails and ruby commands were not found.

Colin

If it is uninstalled then why I'm getting result for $ locate ruby and when I check that path it shows file or directory not found.

For example :

$ locate ruby . . . . . /usr/bin/ruby .... and so on

And when I move to /usr/bin/ruby location then it shows -bash: cd: ruby: No such file or directory

This shows its not available but while locating its shows path to ruby files. What is the problem ? How to solve that ?

This means RoR is uninstalled properly or not.

Yes I believe so, certainly the rails and ruby commands were not found.

If it is uninstalled then why I'm getting result for $ locate ruby and when I check that path it shows file or directory not found.

For example :

$ locate ruby . /usr/bin/ruby

That may be because the locate command uses data from a database which is only updated daily. I think the command updatedb will refresh the database.

.... and so on

And when I move to /usr/bin/ruby location then it shows -bash: cd: ruby: No such file or directory

/usr/bin/ruby is not a folder it is a file (the ruby command). What do you see if you type ls /usr/bin/ruby

Colin

It gives as following:

$ls /usr/bin/ruby ls: cannot access /usr/bin/ruby: No such file or directory

Earlier I have remove /usr/bin/ruby (result of $ which ruby)

So it is not there then, gone. That is what you were trying to achieve is it not? Do you still have a problem?

Colin

Yes while locating ruby it gives following result:

$ locate ruby /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/handler/swiftiplied_mongrel.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/handler/thin.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/handler/webrick.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/head.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/lint.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/lobster.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/lock.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/logger.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/methodoverride.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/mime.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/mock.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/nulllogger.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/recursive.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/reloader.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/request.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/response.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/rewindable_input.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/runtime.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/sendfile.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/server.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/session /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/session/abstract /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/session/abstract/id.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/session/cookie.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/session/memcache.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/session/pool.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/showexceptions.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/showstatus.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/static.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/urlmap.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/utils.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/rack.gemspec /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/RDOX /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/README /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/SPEC /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test/spec_rack_auth_basic.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test/spec_rack_auth_digest.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test/spec_rack_builder.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test/spec_rack_camping.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test/spec_rack_cascade.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test/spec_rack_cgi.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test/spec_rack_chunked.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test/spec_rack_commonlogger.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test/spec_rack_conditionalget.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test/spec_rack_config.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test/spec_rack_content_length.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test/spec_rack_content_type.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test/spec_rack_deflater.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test/spec_rack_directory.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test/spec_rack_etag.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test/spec_rack_fastcgi.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test/spec_rack_file.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test/spec_rack_handler.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test/spec_rack_head.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test/spec_rack_lint.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test/spec_rack_lobster.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test/spec_rack_lock.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test/spec_rack_logger.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test/spec_rack_methodoverride.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test/spec_rack_mock.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test/spec_rack_mongrel.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test/spec_rack_nulllogger.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test/spec_rack_recursive.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test/spec_rack_request.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test/spec_rack_response.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test/spec_rack_rewindable_input.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test/spec_rack_runtime.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test/spec_rack_sendfile.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test/spec_rack_session_cookie.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test/spec_rack_session_memcache.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test/spec_rack_session_pool.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test/spec_rack_showexceptions.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test/spec_rack_showstatus.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test/spec_rack_static.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test/spec_rack_thin.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test/spec_rackup.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test/spec_rack_urlmap.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test/spec_rack_utils.rb /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/test/spec_rack_webrick.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7 /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/CHANGES /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/doc /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/doc/command_line_usage.rdoc /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/doc/example /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/doc/example/a.c /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/doc/example/b.c /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/doc/example/main.c /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/doc/example/Rakefile1 /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/doc/example/Rakefile2 /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/doc/glossary.rdoc /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/doc/jamis.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/doc/proto_rake.rdoc /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/doc/rake.1.gz /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/doc/rakefile.rdoc /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/doc/rational.rdoc /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/doc/release_notes /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/doc/release_notes/rake-0.4.14.rdoc /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/doc/release_notes/rake-0.4.15.rdoc /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/doc/release_notes/rake-0.5.0.rdoc /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/doc/release_notes/rake-0.5.3.rdoc /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/doc/release_notes/rake-0.5.4.rdoc /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/doc/release_notes/rake-0.6.0.rdoc /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/doc/release_notes/rake-0.7.0.rdoc /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/doc/release_notes/rake-0.7.1.rdoc /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/doc/release_notes/rake-0.7.2.rdoc /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/doc/release_notes/rake-0.7.3.rdoc /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/doc/release_notes/rake-0.8.0.rdoc /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/doc/release_notes/rake-0.8.2.rdoc /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/doc/release_notes/rake-0.8.3.rdoc /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/doc/release_notes/rake-0.8.4.rdoc /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/doc/release_notes/rake-0.8.5.rdoc /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/doc/release_notes/rake-0.8.6.rdoc /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/doc/release_notes/rake-0.8.7.rdoc /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/install.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/alt_system.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/classic_namespace.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/clean.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/contrib /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/contrib/compositepublisher.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/contrib/ftptools.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/contrib/publisher.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/contrib/rubyforgepublisher.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/contrib/sshpublisher.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/contrib/sys.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/gempackagetask.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/loaders /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/loaders/makefile.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/packagetask.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rdoctask.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/ruby182_test_unit_fix.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/runtest.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/tasklib.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/testtask.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/win32.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/MIT-LICENSE /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/Rakefile /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/README /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/capture_stdout.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/check_expansion.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/check_no_expansion.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/contrib /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/contrib/test_sys.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/data /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/data/chains /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/data/chains/Rakefile /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/data/default /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/data/default/Rakefile /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/data/dryrun /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/data/dryrun/Rakefile /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/data/file_creation_task /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/data/file_creation_task/Rakefile /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/data/imports /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/data/imports/deps.mf /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/data/imports/Rakefile /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/data/multidesc /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/data/multidesc/Rakefile /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/data/namespace /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/data/namespace/Rakefile /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/data/rakelib /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/data/rakelib/test1.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/data/rbext /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/data/rbext/rakefile.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/data/sample.mf /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/data/statusreturn /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/data/statusreturn/Rakefile /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/data/unittest /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/data/unittest/Rakefile /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/filecreation.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/functional.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/in_environment.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/rake_test_setup.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/reqfile2.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/reqfile.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/session_functional.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/shellcommand.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/test_application.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/test_clean.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/test_definitions.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/test_earlytime.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/test_extension.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/test_file_creation_task.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/test_filelist.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/test_file_task.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/test_fileutils.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/test_ftp.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/test_invocation_chain.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/test_makefile_loader.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/test_multitask.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/test_namespace.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/test_package_task.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/test_pathmap.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/test_pseudo_status.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/test_rake.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/test_rdoc_task.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/test_require.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/test_rules.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/test_task_arguments.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/test_tasklib.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/test_task_manager.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/test_tasks.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/test_test_task.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/test_top_level_functions.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/test/test_win32.rb /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/TODO /usr/lib/ruby/gems/1.8/gems/rubyist-aasm-2.1.1 /usr/lib/ruby/gems/1.8/gems/rubyist-aasm-2.1.1/CHANGELOG /usr/lib/ruby/gems/1.8/gems/rubyist-aasm-2.1.1/doc /usr/lib/ruby/gems/1.8/gems/rubyist-aasm-2.1.1/doc/jamis.rb /usr/lib/ruby/gems/1.8/gems/rubyist-aasm-2.1.1/lib /usr/lib/ruby/gems/1.8/gems/rubyist-aasm-2.1.1/lib/aasm /usr/lib/ruby/gems/1.8/gems/rubyist-aasm-2.1.1/lib/aasm/aasm.rb /usr/lib/ruby/gems/1.8/gems/rubyist-aasm-2.1.1/lib/aasm/event.rb /usr/lib/ruby/gems/1.8/gems/rubyist-aasm-2.1.1/lib/aasm/persistence /usr/lib/ruby/gems/1.8/gems/rubyist-aasm-2.1.1/lib/aasm/persistence/active_record_persistence.rb /usr/lib/ruby/gems/1.8/gems/rubyist-aasm-2.1.1/lib/aasm/persistence.rb /usr/lib/ruby/gems/1.8/gems/rubyist-aasm-2.1.1/lib/aasm.rb /usr/lib/ruby/gems/1.8/gems/rubyist-aasm-2.1.1/lib/aasm/state_machine.rb /usr/lib/ruby/gems/1.8/gems/rubyist-aasm-2.1.1/lib/aasm/state.rb /usr/lib/ruby/gems/1.8/gems/rubyist-aasm-2.1.1/lib/aasm/state_transition.rb /usr/lib/ruby/gems/1.8/gems/rubyist-aasm-2.1.1/MIT-LICENSE /usr/lib/ruby/gems/1.8/gems/rubyist-aasm-2.1.1/Rakefile /usr/lib/ruby/gems/1.8/gems/rubyist-aasm-2.1.1/README.rdoc /usr/lib/ruby/gems/1.8/gems/rubyist-aasm-2.1.1/TODO /usr/lib/ruby/gems/1.8/gems/subexec-0.0.4 /usr/lib/ruby/gems/1.8/gems/subexec-0.0.4/lib /usr/lib/ruby/gems/1.8/gems/subexec-0.0.4/lib/subexec.rb /usr/lib/ruby/gems/1.8/gems/subexec-0.0.4/README.rdoc /usr/lib/ruby/gems/1.8/gems/subexec-0.0.4/VERSION /usr/lib/ruby/gems/1.8/gems/subexec-0.2.2 /usr/lib/ruby/gems/1.8/gems/subexec-0.2.2/lib /usr/lib/ruby/gems/1.8/gems/subexec-0.2.2/lib/subexec.rb /usr/lib/ruby/gems/1.8/gems/subexec-0.2.2/README.md /usr/lib/ruby/gems/1.8/latest_source_cache /usr/lib/ruby/gems/1.8/source_cache /usr/lib/ruby/gems/1.8/specifications /usr/lib/ruby/gems/1.8/specifications/exifr-1.0.3.gemspec /usr/lib/ruby/gems/1.8/specifications/ffi-1.0.5.gemspec /usr/lib/ruby/gems/1.8/specifications/json-1.4.6.gemspec /usr/lib/ruby/gems/1.8/specifications/mini_magick-3.2.gemspec /usr/lib/ruby/gems/1.8/specifications/mini_magick-3.4.gemspec /usr/lib/ruby/gems/1.8/specifications/mysql-2.8.1.gemspec /usr/lib/ruby/gems/1.8/specifications/rack-1.1.0.gemspec /usr/lib/ruby/gems/1.8/specifications/rake-0.8.7.gemspec /usr/lib/ruby/gems/1.8/specifications/rubyist-aasm-2.1.1.gemspec /usr/lib/ruby/gems/1.8/specifications/subexec-0.0.4.gemspec /usr/lib/ruby/gems/1.8/specifications/subexec-0.2.2.gemspec /usr/lib/Wt/examples/wt-homepage/icons/ruby-logo-R.png /usr/local/lib/site_ruby /usr/local/lib/site_ruby/1.8 /usr/local/lib/site_ruby/1.8/gauntlet_rubygems.rb /usr/local/lib/site_ruby/1.8/rbconfig /usr/local/lib/site_ruby/1.8/rbconfig/datadir.rb /usr/local/lib/site_ruby/1.8/rubygems /usr/local/lib/site_ruby/1.8/rubygems/builder.rb /usr/local/lib/site_ruby/1.8/rubygems/command_manager.rb /usr/local/lib/site_ruby/1.8/rubygems/command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands /usr/local/lib/site_ruby/1.8/rubygems/commands/build_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/cert_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/check_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/cleanup_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/contents_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/dependency_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/environment_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/fetch_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/generate_index_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/help_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/install_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/list_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/lock_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/mirror_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/outdated_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/owner_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/pristine_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/push_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/query_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/rdoc_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/search_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/server_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/setup_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/sources_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/specification_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/stale_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/uninstall_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/unpack_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/update_command.rb /usr/local/lib/site_ruby/1.8/rubygems/commands/which_command.rb /usr/local/lib/site_ruby/1.8/rubygems/config_file.rb /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb /usr/local/lib/site_ruby/1.8/rubygems/defaults.rb /usr/local/lib/site_ruby/1.8/rubygems/dependency_installer.rb /usr/local/lib/site_ruby/1.8/rubygems/dependency_list.rb /usr/local/lib/site_ruby/1.8/rubygems/dependency.rb /usr/local/lib/site_ruby/1.8/rubygems/doc_manager.rb /usr/local/lib/site_ruby/1.8/rubygems/errors.rb /usr/local/lib/site_ruby/1.8/rubygems/exceptions.rb /usr/local/lib/site_ruby/1.8/rubygems/ext /usr/local/lib/site_ruby/1.8/rubygems/ext/builder.rb /usr/local/lib/site_ruby/1.8/rubygems/ext/configure_builder.rb /usr/local/lib/site_ruby/1.8/rubygems/ext/ext_conf_builder.rb /usr/local/lib/site_ruby/1.8/rubygems/ext/rake_builder.rb /usr/local/lib/site_ruby/1.8/rubygems/ext.rb /usr/local/lib/site_ruby/1.8/rubygems/format.rb /usr/local/lib/site_ruby/1.8/rubygems/gemcutter_utilities.rb /usr/local/lib/site_ruby/1.8/rubygems/gem_openssl.rb /usr/local/lib/site_ruby/1.8/rubygems/gem_path_searcher.rb /usr/local/lib/site_ruby/1.8/rubygems/gem_runner.rb /usr/local/lib/site_ruby/1.8/rubygems/indexer.rb /usr/local/lib/site_ruby/1.8/rubygems/installer.rb /usr/local/lib/site_ruby/1.8/rubygems/install_update_options.rb /usr/local/lib/site_ruby/1.8/rubygems/local_remote_options.rb /usr/local/lib/site_ruby/1.8/rubygems/old_format.rb /usr/local/lib/site_ruby/1.8/rubygems/package /usr/local/lib/site_ruby/1.8/rubygems/package/f_sync_dir.rb /usr/local/lib/site_ruby/1.8/rubygems/package.rb /usr/local/lib/site_ruby/1.8/rubygems/package/tar_header.rb /usr/local/lib/site_ruby/1.8/rubygems/package/tar_input.rb /usr/local/lib/site_ruby/1.8/rubygems/package/tar_output.rb /usr/local/lib/site_ruby/1.8/rubygems/package/tar_reader /usr/local/lib/site_ruby/1.8/rubygems/package/tar_reader/entry.rb /usr/local/lib/site_ruby/1.8/rubygems/package/tar_reader.rb /usr/local/lib/site_ruby/1.8/rubygems/package/tar_writer.rb /usr/local/lib/site_ruby/1.8/rubygems/package_task.rb /usr/local/lib/site_ruby/1.8/rubygems/platform.rb /usr/local/lib/site_ruby/1.8/rubygems.rb /usr/local/lib/site_ruby/1.8/rubygems/remote_fetcher.rb /usr/local/lib/site_ruby/1.8/rubygems/requirement.rb /usr/local/lib/site_ruby/1.8/rubygems/require_paths_builder.rb /usr/local/lib/site_ruby/1.8/rubygems/security.rb /usr/local/lib/site_ruby/1.8/rubygems/server.rb /usr/local/lib/site_ruby/1.8/rubygems/source_index.rb /usr/local/lib/site_ruby/1.8/rubygems/source_info_cache_entry.rb /usr/local/lib/site_ruby/1.8/rubygems/source_info_cache.rb /usr/local/lib/site_ruby/1.8/rubygems/spec_fetcher.rb /usr/local/lib/site_ruby/1.8/rubygems/specification.rb /usr/local/lib/site_ruby/1.8/rubygems/test_utilities.rb /usr/local/lib/site_ruby/1.8/rubygems/text.rb /usr/local/lib/site_ruby/1.8/rubygems/uninstaller.rb /usr/local/lib/site_ruby/1.8/rubygems/user_interaction.rb /usr/local/lib/site_ruby/1.8/rubygems/validator.rb /usr/local/lib/site_ruby/1.8/rubygems/version_option.rb /usr/local/lib/site_ruby/1.8/rubygems/version.rb /usr/local/lib/site_ruby/1.8/ubygems.rb /usr/share/doc/apt-xapian-index/examples/ruby /usr/share/doc/apt-xapian-index/examples/ruby/aptxapianindex.rb.gz /usr/share/doc/apt-xapian-index/examples/ruby/axi-query-adaptivecutoff.rb /usr/share/doc/apt-xapian-index/examples/ruby/axi-query-expand.rb /usr/share/doc/apt-xapian-index/examples/ruby/axi-query-pkgtype.rb /usr/share/doc/apt-xapian-index/examples/ruby/axi-query.rb /usr/share/doc/apt-xapian-index/examples/ruby/axi-query-similar.rb /usr/share/doc/apt-xapian-index/examples/ruby/axi-query-simple.rb /usr/share/doc/apt-xapian-index/examples/ruby/axi-query-tags.rb /usr/share/doc/apt-xapian-index/examples/ruby/axi-searchasyoutype.rb.gz /usr/share/doc/elinks-data/examples/ruby /usr/share/doc/elinks-data/examples/ruby/hooks.rb.gz /usr/share/doc/libruby1.8 /usr/share/doc/libruby1.8/bigdecimal /usr/share/doc/libruby1.8/bigdecimal/bigdecimal_en.html /usr/share/doc/libruby1.8/bigdecimal/bigdecimal_ja.html /usr/share/doc/libruby1.8/bigdecimal/README /usr/share/doc/libruby1.8/changelog.Debian.gz /usr/share/doc/libruby1.8/copyright /usr/share/doc/libruby1.8/dl /usr/share/doc/libruby1.8/dl/dl.txt.gz /usr/share/doc/libruby1.8/etc /usr/share/doc/libruby1.8/etc/etc.txt /usr/share/doc/libruby1.8/etc/etc.txt.ja /usr/share/doc/libruby1.8/forwardable.rd /usr/share/doc/libruby1.8/forwardable.rd.ja /usr/share/doc/libruby1.8/NEWS-1.8.0.gz /usr/share/doc/libruby1.8/NEWS.Debian.gz /usr/share/doc/libruby1.8/NEWS.gz /usr/share/doc/libruby1.8/pty /usr/share/doc/libruby1.8/pty/README /usr/share/doc/libruby1.8/pty/README.expect /usr/share/doc/libruby1.8/pty/README.expect.ja /usr/share/doc/libruby1.8/pty/README.ja /usr/share/doc/libruby1.8/readline /usr/share/doc/libruby1.8/readline/README /usr/share/doc/libruby1.8/readline/README.ja /usr/share/doc/libruby1.8/README /usr/share/doc/libruby1.8/shell.rd.gz /usr/share/doc/libruby1.8/shell.rd.ja.gz /usr/share/doc/libruby1.8/stringio /usr/share/doc/libruby1.8/stringio/README /usr/share/doc/libruby1.8/syslog /usr/share/doc/libruby1.8/syslog/syslog.txt /usr/share/doc/libruby1.8/zlib /usr/share/doc/libruby1.8/zlib/zlib.rd.gz /usr/share/doc/python-pivy/ruby-inventor.txt /usr/share/doc/ruby1.8 /usr/share/doc/ruby1.8/changelog.Debian.gz /usr/share/doc/ruby1.8/copyright /usr/share/doc/ruby1.8/LEGAL.gz /usr/share/doc/ruby1.8/NEWS-1.8.0.gz /usr/share/doc/ruby1.8/NEWS.Debian.gz /usr/share/doc/ruby1.8/NEWS.gz /usr/share/doc/ruby1.8/README /usr/share/doc/ruby1.8/README.Debian /usr/share/doc/ruby1.8/README.ja.gz /usr/share/doc/ruby1.8/ToDo.gz /usr/share/geany/filetypes.ruby /usr/share/gedit/plugins/snippets/ruby.xml /usr/share/gtksourceview-3.0/language-specs/ruby.lang /usr/share/icons/Humanity/categories/48/applications-ruby.svg /usr/share/icons/Humanity/mimes/22/application-x-ruby.svg /usr/share/icons/Humanity/mimes/22/gnome-mime-application-x-ruby.svg /usr/share/icons/Humanity/mimes/22/text-x-ruby.svg /usr/share/icons/Humanity/mimes/24/application-x-ruby.svg /usr/share/icons/Humanity/mimes/24/gnome-mime-application-x-ruby.svg /usr/share/icons/Humanity/mimes/24/text-x-ruby.svg /usr/share/icons/Humanity/mimes/48/application-x-ruby.svg /usr/share/icons/Humanity/mimes/48/gnome-mime-application-x-ruby.svg /usr/share/icons/Humanity/mimes/48/text-x-ruby.svg /usr/share/icons/oxygen/128x128/mimetypes/application-x-ruby.png /usr/share/icons/oxygen/16x16/mimetypes/application-x-ruby.png /usr/share/icons/oxygen/22x22/mimetypes/application-x-ruby.png /usr/share/icons/oxygen/32x32/mimetypes/application-x-ruby.png /usr/share/icons/oxygen/48x48/mimetypes/application-x-ruby.png /usr/share/icons/oxygen/64x64/mimetypes/application-x-ruby.png /usr/share/joe/syntax/ruby.jsf /usr/share/kde4/apps/katepart/script/ruby.js /usr/share/kde4/apps/katepart/syntax/ruby.xml /usr/share/kde4/services/searchproviders/ruby_application_archive.desktop /usr/share/koha/opac/htdocs/opac-tmpl/prog/famfamfam/silk/page_white_ruby.png /usr/share/koha/opac/htdocs/opac-tmpl/prog/famfamfam/silk/ruby_add.png /usr/share/koha/opac/htdocs/opac-tmpl/prog/famfamfam/silk/ruby_delete.png /usr/share/koha/opac/htdocs/opac-tmpl/prog/famfamfam/silk/ruby_gear.png /usr/share/koha/opac/htdocs/opac-tmpl/prog/famfamfam/silk/ruby_get.png /usr/share/koha/opac/htdocs/opac-tmpl/prog/famfamfam/silk/ruby_go.png /usr/share/koha/opac/htdocs/opac-tmpl/prog/famfamfam/silk/ruby_key.png /usr/share/koha/opac/htdocs/opac-tmpl/prog/famfamfam/silk/ruby_link.png /usr/share/koha/opac/htdocs/opac-tmpl/prog/famfamfam/silk/ruby.png /usr/share/koha/opac/htdocs/opac-tmpl/prog/famfamfam/silk/ruby_put.png /usr/share/lintian/overrides/libruby1.8 /usr/share/man/man1/ruby1.8.1.gz /usr/share/man/man1/ruby.1.gz /usr/share/menu/ruby1.8 /usr/share/mime/application/x-ruby.xml /usr/share/nano/ruby.nanorc /usr/share/ubuntu-serverguide/html/C/ruby-on-rails.html /usr/share/vim/vim73/autoload/rubycomplete.vim /usr/share/vim/vim73/compiler/eruby.vim /usr/share/vim/vim73/compiler/rubyunit.vim /usr/share/vim/vim73/compiler/ruby.vim /usr/share/vim/vim73/doc/if_ruby.txt /usr/share/vim/vim73/ftplugin/eruby.vim /usr/share/vim/vim73/ftplugin/ruby.vim /usr/share/vim/vim73/indent/eruby.vim /usr/share/vim/vim73/indent/ruby.vim /usr/share/vim/vim73/syntax/eruby.vim /usr/share/vim/vim73/syntax/ruby.vim /usr/share/xml/docbook/stylesheet/docbook-xsl/highlighting/ruby-hl.xml /var/cache/apt/archives/libmemcache-client-ruby_1.7.8-2_all.deb /var/cache/apt/archives/libmemcache-client-ruby1.8_1.7.8-2_all.deb /var/cache/apt/archives/libmysql-ruby_2.8.2+gem2deb-1build1_all.deb /var/cache/apt/archives/libruby1.9.1_1.9.3.0-1ubuntu1_i386.deb /var/cache/apt/archives/libtzinfo-ruby_0.3.19-1_all.deb /var/cache/apt/archives/libtzinfo-ruby1.8_0.3.19-1_all.deb /var/cache/apt/archives/ruby1.8_1.8.7.352-2ubuntu1_i386.deb /var/cache/apt/archives/ruby1.8-dev_1.8.7.352-2ubuntu1_i386.deb /var/cache/apt/archives/ruby1.9.1_1.9.3.0-1ubuntu1_i386.deb /var/cache/apt/archives/ruby1.9.1-dev_1.9.3.0-1ubuntu1_i386.deb /var/cache/apt/archives/ruby_4.8_all.deb /var/cache/apt/archives/ruby-actionmailer-2.3_2.3.14-2_all.deb /var/cache/apt/archives/ruby-actionpack-2.3_2.3.14-2_all.deb /var/cache/apt/archives/ruby-activerecord-2.3_2.3.14-1_all.deb /var/cache/apt/archives/ruby-activeresource-2.3_2.3.14-1_all.deb /var/cache/apt/archives/ruby-activesupport-2.3_2.3.14-2_all.deb /var/cache/apt/archives/ruby-blankslate_2.1.2.4-2_all.deb /var/cache/apt/archives/ruby-builder_3.0.0-2_all.deb /var/cache/apt/archives/rubygems_1.8.15-1_all.deb /var/cache/apt/archives/ruby-i18n_0.6.0-1_all.deb /var/cache/apt/archives/ruby-mysql_2.8.2+gem2deb-1build1_i386.deb /var/cache/apt/archives/ruby-rack_1.3.5-1_all.deb /var/cache/apt/archives/ruby-rails-2.3_2.3.14-2_all.deb /var/cache/apt/archives/ruby-rchardet_1.3-2_all.deb /var/cache/apt/archives/ruby-text-format_1.0.0-3_all.deb /var/cache/apt/archives/ruby-tmail_1.2.7.1-1build1_i386.deb /var/lib/dpkg/alternatives/ruby /var/lib/dpkg/info/libruby1.8.list /var/lib/dpkg/info/libruby1.8.md5sums /var/lib/dpkg/info/libruby1.8.postinst /var/lib/dpkg/info/libruby1.8.postrm /var/lib/dpkg/info/libruby1.8.prerm /var/lib/dpkg/info/libruby1.8.shlibs /var/lib/dpkg/info/libruby1.9.1.list /var/lib/dpkg/info/libruby1.9.1.postrm /var/lib/dpkg/info/ruby1.8.list /var/lib/dpkg/info/ruby1.8.md5sums /var/lib/dpkg/info/ruby1.8.postinst /var/lib/dpkg/info/ruby1.8.postrm /var/lib/dpkg/info/ruby1.8.prerm /var/lib/dpkg/info/ruby1.9.1.list /var/lib/dpkg/info/ruby1.9.1.postrm /var/www/gencoplanet/mod/pages/images/ruby.png /var/www/gencoplanet_new/mod/pages/images/ruby.png

Now i move to /usr/lib/ruby it gives result as below (I have removed this ruby folder manually)

$ cd /usr/lib/ruby -bash: cd: /usr/lib/ruby: No such file or directory

I have also used updatedb and still gives same result. This locate command shows result of folders that are not exists. I want to reinstall RoR thats why i'm removing RoR but now I am getting problem.

So the problem you have is that the locate command is showing files that no longer exist. That is nothing to do with RoR so this is not the place to ask about it.

Colin

Actually, my main problem was to remove RoR completely (all versions). Where can I find instructions and steps for the same as I tried most of the methods, but couldn't succeed.

I used even purge option to remove completely but still lot of files exist. Any help will be highly appreciated. :slight_smile:

So the problem you have is that the locate command is showing files that no longer exist. That is nothing to do with RoR so this is not the place to ask about it.

Actually, my main problem was to remove RoR completely (all versions). Where can I find instructions and steps for the same as I tried most of the methods, but couldn't succeed.

I used even purge option to remove completely but still lot of files exist. Any help will be highly appreciated. :slight_smile:

You said in the last post that the files no longer existed, though they still (wrongly) appeared when you used locate. Which files still exist?

Colin

I think you misunderstood my mail. I am trying to explain that I tried to uninstall RoR using commands like apt-get remove and apt-get purge. But still "locate" command locate lot of files. When I tried to access these files, I got file does not exit. I update the files database, using updatedb but not helped.

I want to reinstall RoR so need solution to remove RoR completely. Since there are many versions of both ruby and rails, may be that confusing me.

Thank you in advance.

No, it is you that is misunderstanding. If locate says files exist but when you look using the ls command or a file manager then they do not exist then it is locate that is at fault. If ls and the file manager do not show the files then they do not exist (unless they are hidden files in which case you would be able to see them by enabling the showing of hidden files in the file manager or using ls -a).

For all the files that you think still exist check by means other then locate. If you cannot find them then they do not exist.

Colin