Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
(newbie) install/uninstall apps
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
while true
Guru
Guru


Joined: 07 Apr 2010
Posts: 357
Location: Ljubljana, Slovenia

PostPosted: Wed Oct 06, 2010 8:13 am    Post subject: (newbie) install/uninstall apps Reply with quote

Hello,

I use portage to install and uninstall applications.
But every so often I find app that I can not use,
mainly because of some bug (irda-utils),
or the version is too old (NetBeans),
or it is not listed (Firestarter).

Let say I know how to compile and install in choosen directory,
I do have instructions beside, kheh.
Also, this is not my preferable way,
since I do not know how to uninstall them...

So here is the question,
how can I install aps, and than REALLY uninstall them?

The only useful thing (that I can grasp) I found here:
http://www.pubbs.net/200906/gentoo/6474-gentoo-user-ot-quotmake-uninstallquot-with-no-rule.html
where it says:
Quote:
When I've wanted to remove manually built packages... I've rerun
make install like this:
make install >../_install.log 2>&1
Then from the install log you can see what has been installed and
remove it by hand.

So... I get a file with listed application's files,
that can be just DELETED?

This is basic, I know, but I have no idea how to remove, uninstall, manually installed applications.

What should I pay attention to when installing apps, in (logical?!?) assumption,
that one day I might need to uninstall that app?


I found tons ow HOWTO INSTALL, but I am having hard time finding out how to uninstall...

Is it just me, or should this be, by default, included in installation's instructions?

Thank you for your time and input.
_________________
Kind regards, Goran Mitic

alive
while true
kick ass
Back to top
View user's profile Send private message
richard.scott
Veteran
Veteran


Joined: 19 May 2003
Posts: 1496
Location: Oxfordshire, UK

PostPosted: Wed Oct 06, 2010 9:24 am    Post subject: Reply with quote

Quote:
So... I get a file with listed application's files,
that can be just DELETED?


As long as the files installed aren't over-writing files that already exist you can safely delete them to remove the install by hand.

Rich
Back to top
View user's profile Send private message
cach0rr0
Moderator
Moderator


Joined: 13 Nov 2008
Posts: 4122
Location: Houston, Republic of Texas

PostPosted: Wed Oct 06, 2010 9:27 am    Post subject: Reply with quote

if you're installing outside of portage, it's really more of a general Linux question than something specific to gentoo - the documentation for how to uninstall it should be distributed with the package. In some cases you will be able to do make uninstall (I wonder if any Linux apps use make deinstall? who knows!). If not, you're on your own unfortunately.

There is not going to be a "native Gentoo" way for uninstalling something that was not installed by Gentoo, if that makes sense.

Having said that, if you believe you will very often be installing apps that are not available in portage, I would highly recommend you look into writing ebuilds, and set up your own local overlay

It sounds more scary/complex than it is, and will be a few minutes of reading that will save you a bunch of headache later.

This way portage can keep track of all of the installed files for you, and uninstall them as necessary. It also means that dependencies for such an application can be managed by portage, instead of you having to go and install every dependency by hand, or having to emerge each one individually.


If you have a specific example of an application that is not in portage, and would like some help writing an ebuild plus setting up a local overlay, let us know - I think this will be the best path for you, and certainly the most "gentoo friendly".

You may even get lucky and find that the package you want is available in one of the already-existing overlays. I would say start by giving us a few examples of packages you're looking for, and we can advise accordingly.
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
cach0rr0
Moderator
Moderator


Joined: 13 Nov 2008
Posts: 4122
Location: Houston, Republic of Texas

PostPosted: Wed Oct 06, 2010 9:28 am    Post subject: Reply with quote

richard.scott wrote:
Quote:
So... I get a file with listed application's files,
that can be just DELETED?


As long as the files installed aren't over-writing files that already exist you can safely delete them to remove the install by hand.

Rich


and also this :P
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
while true
Guru
Guru


Joined: 07 Apr 2010
Posts: 357
Location: Ljubljana, Slovenia

PostPosted: Wed Oct 06, 2010 10:35 am    Post subject: Reply with quote

Ola

I am aware that this is general linux/gnu question,
and everybody seems to fail to recognize the importance of it,
or is it just me...

So,...
Quote:
As long as the files installed aren't over-writing files that already exist

if I understand correctly, if I emerge NetBeans version 5 over potrage,
and than install 'by hand' Netbeans version 8,
and later on I want to uninstall version 8,
deleting it is not an option?
And how do I know if some app that I want to uninstall
over-written files that already existed?
But for this I have to have a file that I made using:
Code:
make install >../_install.log 2>&1


I also know, that some apps have make uninstall,
for this I just go to directory where I did make & make install?

But I am most glad for Ebuild Writing, I will have to check that out for sure!

I started with gentoo in April, I think, on both my laptops.
And I just want to make them work for things I have and need.
just recently I managed to make work bluetooth and wireless on my second laptop.

I need infrared, here:
http://forums.gentoo.org/viewtopic-t-847276-highlight-.html
and potrage edition of irda-utils is bugged.
So I have to install irda by hand. But hoping that one day this bug is solved,
I would like to uninstall it, and install one from portage.
(in this case, when there is app in portage, I guess Ebuild Writing is not an option?)

Also, for some reason of learning,
I would like to install some gui for iptables,
and firestarter is not in portage.
(I could not find, well better, I do not know how to find other gui for iptables)

Thank you.
_________________
Kind regards, Goran Mitic

alive
while true
kick ass
Back to top
View user's profile Send private message
rh1
Guru
Guru


Joined: 10 Apr 2010
Posts: 501

PostPosted: Wed Oct 06, 2010 2:56 pm    Post subject: Reply with quote

First off if you can make an ebuild and let portage handle it , that's the best appoach to the problem.

Having said that, if you need to install something by hand, unless it's something that's needed to boot, i'd recommend installing non portage apps to the /usr/local directories (Portage intentionally never installs anything there) or install to another location and update your $PATH. This way you won't have to worry about files getting over written and stuff and will make it alot easier to figure out which files belong to what. I'd also recommend using a "fakeroot" approach and installing to a temporary directory, you would then be able to log all the files before/while coping them to the live filesystem. That way it won't matter if it has an uninstall option, you'll know all the files to remove. That's basically what portage does when it installs packages( well it does alot more than that but you get the point).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum