Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Why do I have to have nano?
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
ddriver
n00b
n00b


Joined: 24 Feb 2005
Posts: 53

PostPosted: Thu Feb 24, 2005 5:02 pm    Post subject: Why do I have to have nano? Reply with quote

I've been running gentoo for a few months. I'm a bit annoyed that I can't get rid of nano. I don't want nano for a couple of reasons:

(1) I prefer vi. I've been using vi for 18 years, it's always the same no matter what flavour of Unix you're using. It's powerful and easy to use, once you know it. I don't need some half-arsed non-standard editor such as nano.

(2) It doesn't fit in with the gentoo philosophy of giving users choice. It should NOT be part of the base build, users should be able to make the choice of editor when they install. RedHat and others give you a load of stuff you don't want in a bloated distro, gentoo shouldn't.

So OK I thought, just unmerge nano. I did - on all my gentoo systems. Only problem is, a while later I'm doing an update, and I find nano being installed again. Aaaaarrrrgh!! I don't want it. unmerged it again. Checked by doing emerge --update --pretend world, and it STILL wants to install it again.

HOW DO I GET RID OF POXY NANO?
Back to top
View user's profile Send private message
psychomunky
Guru
Guru


Joined: 02 Nov 2004
Posts: 337
Location: Canada

PostPosted: Thu Feb 24, 2005 5:08 pm    Post subject: Reply with quote

Something must be pulling nano in...

Have you tried an emerge --pretend --update --tree world to see where nano appears in that list??
Back to top
View user's profile Send private message
solomonHk
Apprentice
Apprentice


Joined: 28 Mar 2004
Posts: 226
Location: int main(void) { };

PostPosted: Thu Feb 24, 2005 5:13 pm    Post subject: Reply with quote

The fact is, there are many applications out there that are designed to import nano and require it as support as default. So, it is not so much gentoo, as it is the applications out there. Nano is not that large. So why not just use vim or vi and forget nano is even installed? Besides, nano isn't meant to compete with VI, it is a pico clone meant to replace pico and pico only.

Last edited by solomonHk on Thu Feb 24, 2005 5:17 pm; edited 1 time in total
Back to top
View user's profile Send private message
dfy
Tux's lil' helper
Tux's lil' helper


Joined: 05 Apr 2004
Posts: 79

PostPosted: Thu Feb 24, 2005 5:14 pm    Post subject: Reply with quote

As far as I know, nano is part of the "system" profile - you can't get rid of it (you'd have to edit the profile to do so). The reason for nano being installed is that you need a text editor for many things you do in gentoo (starting with the chrooted environment you get into during installation), and newbies can't handle vi/vim effectively. Seriously, is nano a problem? It just takes a few kilobytes, no?
Back to top
View user's profile Send private message
ciaranm
Retired Dev
Retired Dev


Joined: 19 Jul 2003
Posts: 1719
Location: In Hiding

PostPosted: Thu Feb 24, 2005 5:33 pm    Post subject: Reply with quote

Wrong! virtual/editor is in the profile. virtual/editor is provided by various things, including vim. By default some profiles set it to nano, but you can change this by unmerging nano and merging vim without using oneshot or =pkg-version or /path (so that it ends up in world).
Back to top
View user's profile Send private message
solomonHk
Apprentice
Apprentice


Joined: 28 Mar 2004
Posts: 226
Location: int main(void) { };

PostPosted: Thu Feb 24, 2005 5:36 pm    Post subject: Reply with quote

ciaranm wrote:
Wrong! virtual/editor is in the profile. virtual/editor is provided by various things, including vim. By default some profiles set it to nano, but you can change this by unmerging nano and merging vim without using oneshot or =pkg-version or /path (so that it ends up in world).


You will still end up finding nano reinstalled when you build certain applications. As I said, some applications dont go by what your system defaults are, but go by what has been selected in the program design. But, this is all covered well in the nano-editor website.
Back to top
View user's profile Send private message
ciaranm
Retired Dev
Retired Dev


Joined: 19 Jul 2003
Posts: 1719
Location: In Hiding

PostPosted: Thu Feb 24, 2005 6:15 pm    Post subject: Reply with quote

solomonHk wrote:
You will still end up finding nano reinstalled when you build certain applications. As I said, some applications dont go by what your system defaults are, but go by what has been selected in the program design. But, this is all covered well in the nano-editor website.

You'll only get nano installed if a package has a hard dep upon nano, rather than virtual/editor.

There are zero packages in the tree that hard depend upon nano.

Thanks for playing.
Back to top
View user's profile Send private message
solomonHk
Apprentice
Apprentice


Joined: 28 Mar 2004
Posts: 226
Location: int main(void) { };

PostPosted: Thu Feb 24, 2005 6:24 pm    Post subject: Reply with quote

ciaranm wrote:
solomonHk wrote:
You will still end up finding nano reinstalled when you build certain applications. As I said, some applications dont go by what your system defaults are, but go by what has been selected in the program design. But, this is all covered well in the nano-editor website.

You'll only get nano installed if a package has a hard dep upon nano, rather than virtual/editor.

There are zero packages in the tree that hard depend upon nano.

Thanks for playing.


Gotta love the people skills some gentoo devs have. :wink: Small winky syndrom to the nth degree. :wink:
Back to top
View user's profile Send private message
ddriver
n00b
n00b


Joined: 24 Feb 2005
Posts: 53

PostPosted: Wed Mar 02, 2005 4:06 pm    Post subject: Reply with quote

Thanks for all the replies. So how about adding a line:
Code:
app-editors/nano

to /etc/portage/package.mask ?
Is there any reason why doing this would be a bad thing?
Back to top
View user's profile Send private message
UncleOwen
Veteran
Veteran


Joined: 27 Feb 2003
Posts: 1493
Location: Germany, Hamburg

PostPosted: Wed Mar 02, 2005 4:10 pm    Post subject: Reply with quote

ddriver wrote:
Is there any reason why doing this would be a bad thing?

nano ist part of system.
Back to top
View user's profile Send private message
TheCoop
Veteran
Veteran


Joined: 15 Jun 2002
Posts: 1814
Location: Where you least expect it

PostPosted: Wed Mar 02, 2005 4:11 pm    Post subject: Reply with quote

well, afaik portage will complain, but 'emerge -C nano && emerge vim' will sort it out for you anyway
_________________
95% of all computer errors occur between chair and keyboard (TM)

"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler

Change the world - move a rock
Back to top
View user's profile Send private message
ciaranm
Retired Dev
Retired Dev


Joined: 19 Jul 2003
Posts: 1719
Location: In Hiding

PostPosted: Wed Mar 02, 2005 4:20 pm    Post subject: Reply with quote

UncleOwen wrote:
ddriver wrote:
Is there any reason why doing this would be a bad thing?

nano ist part of system.

No it isn't.
Back to top
View user's profile Send private message
Cr0t
l33t
l33t


Joined: 27 Apr 2002
Posts: 817
Location: USA

PostPosted: Thu Apr 14, 2005 6:31 pm    Post subject: Reply with quote

Same issue here... so we do not really have an answer to the question or do we?
_________________
cya
    ©®0t
Back to top
View user's profile Send private message
ciaranm
Retired Dev
Retired Dev


Joined: 19 Jul 2003
Posts: 1719
Location: In Hiding

PostPosted: Thu Apr 14, 2005 6:38 pm    Post subject: Reply with quote

Cr0t wrote:
Same issue here... so we do not really have an answer to the question or do we?

We do. Use something else as your virtual/editor provider.
Back to top
View user's profile Send private message
yngwin
Developer
Developer


Joined: 19 Dec 2002
Posts: 4219
Location: Suzhou, China

PostPosted: Thu Apr 14, 2005 9:22 pm    Post subject: Reply with quote

Any recommendations for a good console editor like nano, but that can handle utf-8?
I don't like vi - too complicated for my taste.
_________________
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Back to top
View user's profile Send private message
appro
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jul 2003
Posts: 144
Location: Germany/Rosenheim

PostPosted: Thu Apr 14, 2005 9:26 pm    Post subject: Reply with quote

vim :)
_________________
If a packet hits a pocket on a socket on a port, and the bus is interrupted and the interrupt's not caught, then the socket packet pocket has an error to report.
Back to top
View user's profile Send private message
codergeek42
Bodhisattva
Bodhisattva


Joined: 05 Apr 2004
Posts: 5142
Location: Anaheim, CA (USA)

PostPosted: Thu Apr 14, 2005 9:50 pm    Post subject: Reply with quote

You might want to try app-editors/easyedit. It's meant to be powerful but simple enough for anyone to use.
_________________
~~ Peter: Brony, GNU/Linux geek, caffeine addict, and Free Software advocate.
Who am I? :: EFF & FSF
Back to top
View user's profile Send private message
ciaranm
Retired Dev
Retired Dev


Joined: 19 Jul 2003
Posts: 1719
Location: In Hiding

PostPosted: Thu Apr 14, 2005 10:03 pm    Post subject: Reply with quote

codergeek42 wrote:
You might want to try app-editors/easyedit. It's meant to be powerful but simple enough for anyone to use.

But not using vim is basically admitting to the whole world that you have a short wang. So I say just learn vim and have done with it -- it's something you'll need to know at some point anyway.
Back to top
View user's profile Send private message
codergeek42
Bodhisattva
Bodhisattva


Joined: 05 Apr 2004
Posts: 5142
Location: Anaheim, CA (USA)

PostPosted: Thu Apr 14, 2005 10:26 pm    Post subject: Reply with quote

ciaranm wrote:
But not using vim is basically admitting to the whole world that you have a short wang. So I say just learn vim and have done with it -- it's something you'll need to know at some point anyway.
I agree that Vim is definitely very very useful (and knowing Vim means learning Vi for use on other *nix systems is much easier). But he did say it was "too complicated for [his] taste". :wink:
_________________
~~ Peter: Brony, GNU/Linux geek, caffeine addict, and Free Software advocate.
Who am I? :: EFF & FSF
Back to top
View user's profile Send private message
Cr0t
l33t
l33t


Joined: 27 Apr 2002
Posts: 817
Location: USA

PostPosted: Fri Apr 15, 2005 9:00 pm    Post subject: Reply with quote

ciaranm wrote:
Cr0t wrote:
Same issue here... so we do not really have an answer to the question or do we?

We do. Use something else as your virtual/editor provider.
I am using VI, but I am getting frustrated when portage is forcing nano on my system.
_________________
cya
    ©®0t
Back to top
View user's profile Send private message
appro
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jul 2003
Posts: 144
Location: Germany/Rosenheim

PostPosted: Fri Apr 15, 2005 9:28 pm    Post subject: Reply with quote

Cr0t wrote:
I am using VI ...

What package would that be? (like foo/bar)
_________________
If a packet hits a pocket on a socket on a port, and the bus is interrupted and the interrupt's not caught, then the socket packet pocket has an error to report.
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5077
Location: France, Old Europe

PostPosted: Fri Apr 15, 2005 10:49 pm    Post subject: Reply with quote

Jeezus , what is the matter with you lot ?

You have one of the top Gentoo devs giving you full, clear and concise explainations that you dont read, contradict and then ask the same damn qu that was fully explained two posts earlier.

I am surprised anyone bothers to reply to such dumb posts

Anyway I'm off to read the doc on using vim , I have it on good authority that my dick will get bigger. :P
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.

KX7-333 , AthlonXP1800+ @2.3GHz
AthlonXP-M on A7N8X @ 2.6/2.4GHz (winter/summer)
2.6.32-hh1 : portage ~x86
Back to top
View user's profile Send private message
bet1m
l33t
l33t


Joined: 04 Dec 2004
Posts: 631
Location: Kosova/Prishtine

PostPosted: Fri Apr 15, 2005 10:54 pm    Post subject: Reply with quote

nano rocks at all :D
_________________
#370559
Back to top
View user's profile Send private message
ciaranm
Retired Dev
Retired Dev


Joined: 19 Jul 2003
Posts: 1719
Location: In Hiding

PostPosted: Sat Apr 16, 2005 6:33 am    Post subject: Reply with quote

Cr0t wrote:
ciaranm wrote:
Cr0t wrote:
Same issue here... so we do not really have an answer to the question or do we?

We do. Use something else as your virtual/editor provider.
I am using VI, but I am getting frustrated when portage is forcing nano on my system.

Nano is not forced upon your system.

appro wrote:
Cr0t wrote:
I am using VI ...

What package would that be? (like foo/bar)

'Traditional' vi is no longer in the tree, since it only works with termcap, which we're trying to remove in favour of terminfo. Your choices are vim, nvi or elvis -- they're all in app-editors.
Back to top
View user's profile Send private message
transienteagle
Apprentice
Apprentice


Joined: 24 Dec 2003
Posts: 190
Location: UK

PostPosted: Sat Apr 16, 2005 3:27 pm    Post subject: Reply with quote

Peeps,

Personally I love nano, nothing wrong with it (imho). emacs is horrible and vim is for hairy chested C programming girlies.

rgds

TE
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
Goto page 1, 2  Next
Page 1 of 2

 
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