Testing > command-not-found for ROSA

About ROSA Desktop distribution and help to users
Post Reply
User avatar
rugyada
Amministratore
Amministratore
Posts: 1548
Joined: 14 July 2008, 22:58
ROSA: ROSA.Fresh R8 64bit
OpenMandriva: OMLx 4.2
Kernel: kernel-release
Desktop: KDE tutta la vita
country: Italy

Testing > command-not-found for ROSA

Post 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 ~]$ 
Image
ciauu ciauu, ruru

MIB... e le stelle stanno a guardare.
«I grandi spiriti hanno sempre incontrato violenta opposizione da parte delle menti mediocri.»
(Albert Einstein)

User avatar
azioga
Utente senior
Utente senior
Posts: 336
Joined: 8 December 2010, 22:06
ROSA: -
OpenMandriva: 2010.2 32bit
Kernel: 3.2.28-nrj-desktop-p
Desktop: kde 4.5.5
country: italy

Re: Testing > command-not-found for ROSA

Post 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.

Post Reply