Page 1 of 1

Testing > command-not-found for ROSA

Posted: 21 December 2012, 21:01
by rugyada
From rosa-devel, thank to Anton Kirilenko, we could test a new tool for console: command-not-found.
Anton Kirilenko wrote:A new tool for console geeks, command-not-found is about to be released :)

Add a medium http://abf.rosalinux.ru/downloads/akiri ... n/release/ and install command-not-found package. After that open a new terminal and enter some typo command like "makw", or enter the comand from not installed package. Here the magic begins... :) It will try to find commands with similar names and will show you package names and repositories to search in.

You can also execute
cnf makw
and get the same results.

For test use:

32bit:

Code: Select all

urpmi.addmedia akirilenko_personal http://abf.rosalinux.ru/downloads/akirilenko_personal/repository/rosa2012.1/i586/main/release/

64bit:

Code: Select all

urpmi.addmedia akirilenko_personal http://abf.rosalinux.ru/downloads/akirilenko_personal/repository/rosa2012.1/x86_64/main/release/

Code: Select all

urpmi command-not-found
-------

My installation:

Code: Select all

[cristina@localhost ~]$ su
Password: 
[root@localhost cristina]# urpmi.addmedia akirilenko_personal http://abf.rosalinux.ru/downloads/akirilenko_personal/repository/rosa2012.1/i586/main/release/
viene aggiunto il supporto "akirilenko_personal"
    http://abf.rosalinux.ru/downloads/akirilenko_personal/repository/rosa2012.1/i586/main/release/media_info/synthesis.hdlist.cz
[root@localhost cristina]# 

Code: Select all

[root@localhost cristina]# urpmi command-not-found
Per soddisfare le dipendenze, saranno installati i seguenti pacchetti:
 Pacchetto                      Versione     Release       Dist  DEpoch Arch. 
(supporto "contrib (Desktop2012.1-3)")
 python-json                    3.4          3             rosa  2012.1 noarch 
(supporto "akirilenko_personal")
 command-not-found              1.0          2             rosa  2012.1 noarch 
 command-not-found-data         2012.12.21   2             rosa  2012.1 noarch 
Altri 983KB di spazio disco saranno utilizzati.
verranno scaricati 996KB di pacchetti.
Procedo con l'installazione di 3 pacchetti? (S/n) s


    $MIRRORLIST: media/contrib/release/python-json-3.4-3-rosa2012.1.noarch.rpm
    http://abf.rosalinux.ru/downloads/akirilenko_personal/repository/rosa2012.1/i586/main/release/command-not-found-data-2012.12.21-2-rosa2012.1.noarch.rpm
    http://abf.rosalinux.ru/downloads/akirilenko_personal/repository/rosa2012.1/i586/main/release/command-not-found-1.0-2-rosa2012.1.noarch.rpm
installazione di command-not-found-data-2012.12.21-2-rosa2012.1.noarch.rpm python-json-3.4-3-rosa2012.1.noarch.rpm command-not-found-1.0-2-rosa2012.1.noarch.rpm da /var/cache/urpmi/rpms
In preparazione...               ###########################################################################################
      1/3: python-json           ###########################################################################################
      2/3: command-not-found-data
                                 ###########################################################################################
      3/3: command-not-found     ###########################################################################################
[root@localhost cristina]# 

Test:

Code: Select all

[cristina@localhost ~]$ makw
 No command 'makw' found, did you mean:
  Command 'mawk' from package 'mawk' (main)
  Command 'make' from package 'make' (main)
[cristina@localhost ~]$ 

Re: Testing > command-not-found for ROSA

Posted: 21 December 2012, 21:40
by azioga
Useful, but it's not a news ;-)

xenix os natively behaved so in the 80'.

So i suggest also a "path-not-found"

Ciao, Luca.