dubbi su apt

Il ritrovo della comunità dove confrontarsi e discutere sulle notizie dal mondo dell'informatica, di Ubuntu e di tutto quello che la riguarda, novità, pettegolezzi e quant'altro.
xneo
Prode Principiante
Messaggi: 83
Iscrizione: lunedì 21 aprile 2014, 12:55

dubbi su apt

Messaggio da xneo »

ciao a tutti, sono ,da pochi giorni, venuto a contatto con linux. Dopo tanti anni di windows ho deciso di installare linux mint.

Non so se è la sezione giusta (spero mi perdonerete) , ma come ho scritto nel titolo ho qualche dubbio su apt.

Quello che vorrei sapere è che differenza c'è nello scrivere nel terminale

Codice: Seleziona tutto

apt install pacchetto
o

Codice: Seleziona tutto

apt-get install pacchetto
Insomma, qual è la differenza tra apt e apt-get?

Grazie
Ultima modifica di xneo il lunedì 21 aprile 2014, 15:07, modificato 1 volta in totale.
daigo

Re: dubbi su apt

Messaggio da daigo »

per quello che so, e' uguale,ma il primo comando funziona solo su mint che ha una modifica ,che ora non ricordo
Avatar utente
tecnopado
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1356
Iscrizione: giovedì 20 febbraio 2014, 22:49
Desktop: i3WM-Gnome-xfce4.12-tmux
Distribuzione: ArchLinux-CentOS-Manjaro-Gentoo
Località: mnt /dev/Gorizia/Casa_Mia/

Re: dubbi su apt

Messaggio da tecnopado »

innanzitutto faccio gli auguri..
poi che io sappia non ho mai visto apt-install .... che abbia tralasciato qualcosa io?? ma dove hai visto apt-install ???
chiedo scusa a tutti se sto dicendo una boiata.. ma non mi risulta questo comando.. posta un link di dove lo hai trovato ..almeno per me sarebbe una cosa nuova..
comunque c'è la pagina wiki sull'uso di APT wiki APT
--- Il mio Super Tempo Di BOOT: SSD Crucial M550 GPT+BTRFS+custom kernel 4.0 | Startup finished in 1.145s (kernel) + 674ms (userspace) = 1.820s !!!!! :D
personal config REPO https://github.com/tecnopado UTENTE ARCHLINUX FIERO&SODDISFATTO!!!! GUIDA BOOTTIME http://www.inthebit.it/fast-boot-time-s ... ux-con-ssd
Avatar utente
giulux
Amministratore
Amministratore
Messaggi: 25422
Iscrizione: domenica 10 gennaio 2010, 12:17
Desktop: ubuntu 18.04
Distribuzione: Ubuntu 18.04.3 LTS x86_64
Sesso: Maschile
Località: Roma

Re: dubbi su apt

Messaggio da giulux »

Benvenuto!

non usare la spoiler per inserimenti di comandi ma i tag code.
Modifica il post mettendo code al posto di spoiler fra le parentesi quadre.

Quanto alla tua domanda, per farsi un'idea di quello che fanno i comandi e come si usano la via più veloce è dare nel terminale man seguito dal nome del comando

Codice: Seleziona tutto

man apt

Codice: Seleziona tutto

man apt-get
"Non è una segno di buona salute l'essere ben adattato ad una società malata". (Jiddu Krishnarmurti)
xneo
Prode Principiante
Messaggi: 83
Iscrizione: lunedì 21 aprile 2014, 12:55

Re: dubbi su apt

Messaggio da xneo »

ricambio gli auguri.

@tecnopado: non ho scritto apt -install, ma apt install (senza il trattino).
L'ho letto sul manuale di installazione di linux mint.

Ho letto la pagina wiki, ma mi sono rimasti dei dubbi (ripeto sono un completo principiante).

@daigo: quindi mi consigli di usare apt-get?

Perdonatemi ma ho altri dubbi.

Cosa succede se scrivo:

Codice: Seleziona tutto

apt-get install
o

Codice: Seleziona tutto

apt-get remove
senza passargli argomenti?
Ultima modifica di xneo il lunedì 21 aprile 2014, 15:06, modificato 1 volta in totale.
Avatar utente
ale multimediale
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 3681
Iscrizione: mercoledì 14 agosto 2013, 18:24
Desktop: i3-wm
Distribuzione: Arch,Win10

Re: dubbi su apt

Messaggio da ale multimediale »

Anche su kubuntu funziona il solo apt senza il get..

Codice: Seleziona tutto

 sudo apt install vlc
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze       
Lettura informazioni sullo stato... Fatto
vlc è già alla versione più recente.
0 aggiornati, 0 installati, 0 da rimuovere e 0 non aggiornati.

Codice: Seleziona tutto

Kubuntu:~$ sudo apt remove vlc
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze       
Lettura informazioni sullo stato... Fatto
I seguenti pacchetti saranno RIMOSSI:
  vlc
0 aggiornati, 0 installati, 1 da rimuovere e 0 non aggiornati.
Dopo quest'operazione, verranno liberati 3.855 kB di spazio su disco.
Continuare? [S/n] n
Interrotto.

Codice: Seleziona tutto

Kubuntu:~$ sudo apt update
Ign http://dl.google.com stable InRelease
Ign http://archive.ubuntu.com trusty InRelease                               
Ign http://extras.ubuntu.com trusty InRelease                                
Ign http://archive.canonical.com trusty InRelease                            
Trovato http://dl.google.com stable Release.gpg      
Trovato http://archive.canonical.com trusty Release.gpg                       
Scaricamento di:1 http://extras.ubuntu.com trusty Release.gpg [72 B]          
Ign http://archive.ubuntu.com trusty-updates InRelease                         
Trovato http://dl.google.com stable Release                                   
Ign http://archive.ubuntu.com trusty-backports InRelease                      
Trovato http://archive.canonical.com trusty Release                           
Trovato http://extras.ubuntu.com trusty Release                               
Ign http://archive.ubuntu.com trusty-security InRelease                       
Trovato http://archive.ubuntu.com trusty Release.gpg                        
Trovato http://dl.google.com stable/main amd64 Packages                        
Trovato http://dl.google.com stable/main i386 Packages                        
Trovato http://archive.canonical.com trusty/partner Sources                   
Trovato http://extras.ubuntu.com trusty/main Sources                          
Scaricamento di:2 http://archive.ubuntu.com trusty-updates Release.gpg [933 B]
Trovato http://archive.canonical.com trusty/partner amd64 Packages             
Trovato http://extras.ubuntu.com trusty/main amd64 Packages                    
Trovato http://archive.ubuntu.com trusty-backports Release.gpg                 
Trovato http://extras.ubuntu.com trusty/main i386 Packages                    
Trovato http://archive.canonical.com trusty/partner i386 Packages             
Trovato http://archive.ubuntu.com trusty-security Release.gpg                 
Trovato http://archive.ubuntu.com trusty Release                              
Scaricamento di:3 http://archive.ubuntu.com trusty-updates Release [58,5 kB]   
Trovato http://archive.ubuntu.com trusty-backports Release                     
Trovato http://archive.ubuntu.com trusty-security Release                      
Trovato http://archive.ubuntu.com trusty/main Sources                          
Trovato http://archive.ubuntu.com trusty/multiverse Sources                    
Ign http://dl.google.com stable/main Translation-it_IT                         
Trovato http://archive.ubuntu.com trusty/universe Sources                      
Ign http://dl.google.com stable/main Translation-it                            
Trovato http://archive.ubuntu.com trusty/restricted Sources                    
Ign http://dl.google.com stable/main Translation-en                            
Ign http://archive.canonical.com trusty/partner Translation-it_IT              
Ign http://extras.ubuntu.com trusty/main Translation-it_IT                     
Trovato http://archive.ubuntu.com trusty/main amd64 Packages
Ign http://archive.canonical.com trusty/partner Translation-it
Trovato http://archive.ubuntu.com trusty/restricted amd64 Packages
Ign http://extras.ubuntu.com trusty/main Translation-it
Ign http://archive.canonical.com trusty/partner Translation-en
Ign http://extras.ubuntu.com trusty/main Translation-en
Trovato http://archive.ubuntu.com trusty/universe amd64 Packages
Trovato http://archive.ubuntu.com trusty/multiverse amd64 Packages
Trovato http://archive.ubuntu.com trusty/main i386 Packages
Trovato http://archive.ubuntu.com trusty/restricted i386 Packages
Trovato http://archive.ubuntu.com trusty/universe i386 Packages
Trovato http://archive.ubuntu.com trusty/multiverse i386 Packages
Trovato http://archive.ubuntu.com trusty/main Translation-it
Trovato http://archive.ubuntu.com trusty/main Translation-en
Trovato http://archive.ubuntu.com trusty/multiverse Translation-it
Trovato http://archive.ubuntu.com trusty/multiverse Translation-en
Trovato http://archive.ubuntu.com trusty/restricted Translation-it
Trovato http://archive.ubuntu.com trusty/restricted Translation-en
Trovato http://archive.ubuntu.com trusty/universe Translation-it
Trovato http://archive.ubuntu.com trusty/universe Translation-en
Scaricamento di:4 http://archive.ubuntu.com trusty-updates/main Sources [1.712 B]
Scaricamento di:5 http://archive.ubuntu.com trusty-updates/multiverse Sources [1.790 B]
Scaricamento di:6 http://archive.ubuntu.com trusty-updates/universe Sources [648 B]
Scaricamento di:7 http://archive.ubuntu.com trusty-updates/restricted Sources [14 B]
Scaricamento di:8 http://archive.ubuntu.com trusty-updates/main amd64 Packages [2.966 B]
Scaricamento di:9 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [14 B]
Scaricamento di:10 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [1.602 B]
Scaricamento di:11 http://archive.ubuntu.com trusty-updates/multiverse amd64 Packages [6.362 B]
Scaricamento di:12 http://archive.ubuntu.com trusty-updates/main i386 Packages [2.998 B]
Scaricamento di:13 http://archive.ubuntu.com trusty-updates/restricted i386 Packages [14 B]
Scaricamento di:14 http://archive.ubuntu.com trusty-updates/universe i386 Packages [1.601 B]
Scaricamento di:15 http://archive.ubuntu.com trusty-updates/multiverse i386 Packages [6.386 B]
Trovato http://archive.ubuntu.com trusty-updates/main Translation-en
Trovato http://archive.ubuntu.com trusty-updates/multiverse Translation-en
Trovato http://archive.ubuntu.com trusty-updates/restricted Translation-en
Trovato http://archive.ubuntu.com trusty-updates/universe Translation-en
Trovato http://archive.ubuntu.com trusty-backports/main Sources
Trovato http://archive.ubuntu.com trusty-backports/restricted Sources
Trovato http://archive.ubuntu.com trusty-backports/universe Sources
Trovato http://archive.ubuntu.com trusty-backports/multiverse Sources
Trovato http://archive.ubuntu.com trusty-backports/main amd64 Packages
Trovato http://archive.ubuntu.com trusty-backports/restricted amd64 Packages
Trovato http://archive.ubuntu.com trusty-backports/universe amd64 Packages
Trovato http://archive.ubuntu.com trusty-backports/multiverse amd64 Packages
Trovato http://archive.ubuntu.com trusty-backports/main i386 Packages
Trovato http://archive.ubuntu.com trusty-backports/restricted i386 Packages
Trovato http://archive.ubuntu.com trusty-backports/universe i386 Packages
Trovato http://archive.ubuntu.com trusty-backports/multiverse i386 Packages
Trovato http://archive.ubuntu.com trusty-backports/main Translation-en
Trovato http://archive.ubuntu.com trusty-backports/multiverse Translation-en
Trovato http://archive.ubuntu.com trusty-backports/restricted Translation-en
Trovato http://archive.ubuntu.com trusty-backports/universe Translation-en
Trovato http://archive.ubuntu.com trusty-security/main Sources
Trovato http://archive.ubuntu.com trusty-security/multiverse Sources
Trovato http://archive.ubuntu.com trusty-security/universe Sources
Trovato http://archive.ubuntu.com trusty-security/restricted Sources
Trovato http://archive.ubuntu.com trusty-security/main amd64 Packages
Trovato http://archive.ubuntu.com trusty-security/restricted amd64 Packages
Trovato http://archive.ubuntu.com trusty-security/universe amd64 Packages
Trovato http://archive.ubuntu.com trusty-security/multiverse amd64 Packages
Trovato http://archive.ubuntu.com trusty-security/main i386 Packages
Trovato http://archive.ubuntu.com trusty-security/restricted i386 Packages
Trovato http://archive.ubuntu.com trusty-security/universe i386 Packages
Trovato http://archive.ubuntu.com trusty-security/multiverse i386 Packages
Trovato http://archive.ubuntu.com trusty-security/main Translation-en
Trovato http://archive.ubuntu.com trusty-security/multiverse Translation-en
Trovato http://archive.ubuntu.com trusty-security/restricted Translation-en
Trovato http://archive.ubuntu.com trusty-security/universe Translation-en      
Ign http://archive.ubuntu.com trusty/main Translation-it_IT                    
Ign http://archive.ubuntu.com trusty/multiverse Translation-it_IT              
Ign http://archive.ubuntu.com trusty/restricted Translation-it_IT              
Ign http://archive.ubuntu.com trusty/universe Translation-it_IT                
Ign http://archive.ubuntu.com trusty-updates/main Translation-it_IT            
Ign http://archive.ubuntu.com trusty-updates/main Translation-it               
Ign http://archive.ubuntu.com trusty-updates/multiverse Translation-it_IT      
Ign http://archive.ubuntu.com trusty-updates/multiverse Translation-it         
Ign http://archive.ubuntu.com trusty-updates/restricted Translation-it_IT      
Ign http://archive.ubuntu.com trusty-updates/restricted Translation-it         
Ign http://archive.ubuntu.com trusty-updates/universe Translation-it_IT        
Ign http://archive.ubuntu.com trusty-updates/universe Translation-it           
Ign http://archive.ubuntu.com trusty-backports/main Translation-it_IT          
Ign http://archive.ubuntu.com trusty-backports/main Translation-it             
Ign http://archive.ubuntu.com trusty-backports/multiverse Translation-it_IT    
Ign http://archive.ubuntu.com trusty-backports/multiverse Translation-it       
Ign http://archive.ubuntu.com trusty-backports/restricted Translation-it_IT    
Ign http://archive.ubuntu.com trusty-backports/restricted Translation-it       
Ign http://archive.ubuntu.com trusty-backports/universe Translation-it_IT      
Ign http://archive.ubuntu.com trusty-backports/universe Translation-it         
Ign http://archive.ubuntu.com trusty-security/main Translation-it_IT           
Ign http://archive.ubuntu.com trusty-security/main Translation-it              
Ign http://archive.ubuntu.com trusty-security/multiverse Translation-it_IT     
Ign http://archive.ubuntu.com trusty-security/multiverse Translation-it        
Ign http://archive.ubuntu.com trusty-security/restricted Translation-it_IT     
Ign http://archive.ubuntu.com trusty-security/restricted Translation-it        
Ign http://archive.ubuntu.com trusty-security/universe Translation-it_IT       
Ign http://archive.ubuntu.com trusty-security/universe Translation-it          
Recuperati 85,6 kB in 11s (7.526 B/s)         
Quindi il get non serve piu o è sempre consigliato metterlo? :perpless:
"Il progresso è fatto da uomini pigri che cercano modi più facili per fare le cose"
Xubuntu
Avatar utente
giulux
Amministratore
Amministratore
Messaggi: 25422
Iscrizione: domenica 10 gennaio 2010, 12:17
Desktop: ubuntu 18.04
Distribuzione: Ubuntu 18.04.3 LTS x86_64
Sesso: Maschile
Località: Roma

Re: dubbi su apt

Messaggio da giulux »

@xneo: ti ho detto "code" non "code2" :nono:
correggi

quanto agli ultimi dubbi: prova
"Non è una segno di buona salute l'essere ben adattato ad una società malata". (Jiddu Krishnarmurti)
daigo

Re: dubbi su apt

Messaggio da daigo »

ho provato su 12.04 e non funziona,comunque se si vuole si pò fare,si crea un alias del comando desiderato in ~/bash.rc

Codice: Seleziona tutto

gksu gedit  ~/.bashrc
[/s]

Codice: Seleziona tutto

gedit ~/.bashrc
e si aggiungono in fondo al file gli alias per esempio ho aggiunto

Codice: Seleziona tutto

alias install="sudo apt-get install"
alias update="sudo apt-get update"
e salvato il file,ora per installare basta

Codice: Seleziona tutto

install nome_pacchetto
e per l'update

Codice: Seleziona tutto

update
oppure

Codice: Seleziona tutto

alias update="sudo apt-get update && sudo apt-get upgrade"
e fà entrambi,update e upgrade rimangono comunque validi i comandi sudo apt-get install e sudo apt-get update o sudo apt-get update && sudo apt-get upgrade.

Un altro esempio,sudo apt-get remove

Codice: Seleziona tutto

alias remove="sudo apt-get remove"
e per rimuovere un pacchetto, basta

Codice: Seleziona tutto

remove nome_pacchetto

Codice: Seleziona tutto

~$ remove vlc
[sudo] password for daigo: 
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze       
Lettura informazioni sullo stato... Fatto
I seguenti pacchetti saranno RIMOSSI:
  vlc
0 aggiornati, 0 installati, 1 da rimuovere e 15 non aggiornati.
Dopo quest'operazione, verranno liberati 3481 kB di spazio su disco.
Continuare [S/n]? 
EDIT: ho corretto il comando,non servono i privilegi,visto che è dell'utente in ~/
Ultima modifica di daigo il lunedì 21 aprile 2014, 16:17, modificato 1 volta in totale.
xneo
Prode Principiante
Messaggi: 83
Iscrizione: lunedì 21 aprile 2014, 12:55

Re: dubbi su apt

Messaggio da xneo »

@giulux scusami ma sono un po' spratico.

Ho provato, per install ed ho ricevuto il seguente output:

Codice: Seleziona tutto

Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze
Lettura informazioni sullo stato... Fatto
0 aggiornati, 0 installati, 0 da rimuovere e  0 non aggiornati.
non capisco quindi se ha cercato di aggiornare tutti i pacchetti o non ha fatto nulla.

So che per voi sono domande stupide, ma per me sono cose completamente nuove.
daigo

Re: dubbi su apt

Messaggio da daigo »

secondo me, i comandi dati così ,non fanno nulla ,se dai l'install senza un pacchetto ,va a fare di rutine una scansione dei pacchetti installati e vede se cè qualcosa da aggiornare,in questo momento non hai niente da aggiornare
xneo
Prode Principiante
Messaggi: 83
Iscrizione: lunedì 21 aprile 2014, 12:55

Re: dubbi su apt

Messaggio da xneo »

grazie per la risposta daigo.
In pratica è equivalente a apt-get updgrade?

Un'altra cosa.
subito dopo aver installato o rimosso dei pacchetti è bene scrivere apt-get clean?
daigo

Re: dubbi su apt

Messaggio da daigo »

sudo apt-get clean puoi usarlo dopo che hai installato gli aggiornamenti (con gestore aggiornamenti o sudo apt-get update && sudo apt-get upgrade) ,quando installi gli aggiornamenti,i pacchetti vengono prima scaricati nella cache di apt e poi installati,dopo l'installazione pulisci la cache con quel comando e liberi spazio,puoi anche usarlo dopo che hai installato nuovi pacchetti,perchè anche in quel caso i pacchetti vanno prima nella cache e poi installati,quando rimuovi un programma non serve

Comunque per tutte le pulizie del sistema ,ti consiglio ubuntu-tweak
http://ubuntu-tweak.com/
xneo
Prode Principiante
Messaggi: 83
Iscrizione: lunedì 21 aprile 2014, 12:55

Re: dubbi su apt

Messaggio da xneo »

ok, vi ringrazio tutti. Un bel po di dubbi sono stati chiariti.
Avatar utente
milazzo87
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1958
Iscrizione: sabato 17 dicembre 2011, 16:51
Desktop: GNOME
Distribuzione: Ubuntu 17.10

Re: dubbi su apt

Messaggio da milazzo87 »

Il comando apt è utilizzabile dal rilascio ufficiale di APT 1.0 (1 Aprile 2014) al posto dei vecchi apt-get e apt-cache.
What used to be called "deity" was announced as "Apt", first
released as "APT" [1], shipped as "apt-get" and "apt-cache",
interpreted as "A Package Tool" and "Advanced Package Tool" and is now
also available as "apt"
Fonte: https://lists.debian.org/debian-devel/2 ... 00013.html
La pisciata in compagnia è di sinistra, il cesso è sempre in fondo a destra. [cit. G. Gaber]
daigo

Re: dubbi su apt

Messaggio da daigo »

milazzo87 ha scritto:Il comando apt è utilizzabile dal rilascio ufficiale di APT 1.0 (1 Aprile 2014) al posto dei vecchi apt-get e apt-cache.
What used to be called "deity" was announced as "Apt", first
released as "APT" [1], shipped as "apt-get" and "apt-cache",
interpreted as "A Package Tool" and "Advanced Package Tool" and is now
also available as "apt"
Fonte: https://lists.debian.org/debian-devel/2 ... 00013.html
ah ecco,comunque come dicevo prima si possono fare le modifiche che si vogliono ai comandi
Avatar utente
tecnopado
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1356
Iscrizione: giovedì 20 febbraio 2014, 22:49
Desktop: i3WM-Gnome-xfce4.12-tmux
Distribuzione: ArchLinux-CentOS-Manjaro-Gentoo
Località: mnt /dev/Gorizia/Casa_Mia/

Re: dubbi su apt

Messaggio da tecnopado »

milazzo87 [url=http://forum.ubuntu-it.org/viewtopic.php?p=4567597#p4567597][img]http://forum.ubuntu-it.org/images/icons/icona-cita.gif[/img][/url] ha scritto:Il comando apt è utilizzabile dal rilascio ufficiale di APT 1.0 (1 Aprile 2014) al posto dei vecchi apt-get e apt-cache.
What used to be called "deity" was announced as "Apt", first
released as "APT" [1], shipped as "apt-get" and "apt-cache",
interpreted as "A Package Tool" and "Advanced Package Tool" and is now
also available as "apt"
Fonte: https://lists.debian.org/debian-devel/2 ... 00013.html
..praticamente in parole povere..le vecchie versioni precedenti a quella data ''funzionano'' sia com apt che con apt-get (insomma si puo' utilizzare sia uno che l'altro?) ...?? e, per fare un esempio semplice ..eventualmente una 13.10..che poi ha ricevuto l'aggiornamento di apt dovrebbe andare anche con apt anziche' apt-get?? ..
--- Il mio Super Tempo Di BOOT: SSD Crucial M550 GPT+BTRFS+custom kernel 4.0 | Startup finished in 1.145s (kernel) + 674ms (userspace) = 1.820s !!!!! :D
personal config REPO https://github.com/tecnopado UTENTE ARCHLINUX FIERO&SODDISFATTO!!!! GUIDA BOOTTIME http://www.inthebit.it/fast-boot-time-s ... ux-con-ssd
Avatar utente
milazzo87
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1958
Iscrizione: sabato 17 dicembre 2011, 16:51
Desktop: GNOME
Distribuzione: Ubuntu 17.10

Re: dubbi su apt

Messaggio da milazzo87 »

Credo che le versioni precedenti funzionassero solo con apt-get e apt-cache, mentre la nuova funziona anche con apt. Inoltre c'è una lista di comandi nuovi, tra i quali, ad esempio, uno che modifica il sources.list.
La pisciata in compagnia è di sinistra, il cesso è sempre in fondo a destra. [cit. G. Gaber]
Avatar utente
tecnopado
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1356
Iscrizione: giovedì 20 febbraio 2014, 22:49
Desktop: i3WM-Gnome-xfce4.12-tmux
Distribuzione: ArchLinux-CentOS-Manjaro-Gentoo
Località: mnt /dev/Gorizia/Casa_Mia/

Re: dubbi su apt

Messaggio da tecnopado »

milazzo87 [url=http://forum.ubuntu-it.org/viewtopic.php?p=4567688#p4567688][img]http://forum.ubuntu-it.org/images/icons/icona-cita.gif[/img][/url] ha scritto:Credo che le versioni precedenti funzionassero solo con apt-get e apt-cache, mentre la nuova funziona anche con apt. Inoltre c'è una lista di comandi nuovi, tra i quali, ad esempio, uno che modifica il sources.list.
!ecco proprio cio' che intendevo sapere!! interessantissima discussione! ..pensare che sembrava quasi banale...
:D
--- Il mio Super Tempo Di BOOT: SSD Crucial M550 GPT+BTRFS+custom kernel 4.0 | Startup finished in 1.145s (kernel) + 674ms (userspace) = 1.820s !!!!! :D
personal config REPO https://github.com/tecnopado UTENTE ARCHLINUX FIERO&SODDISFATTO!!!! GUIDA BOOTTIME http://www.inthebit.it/fast-boot-time-s ... ux-con-ssd
Avatar utente
milazzo87
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1958
Iscrizione: sabato 17 dicembre 2011, 16:51
Desktop: GNOME
Distribuzione: Ubuntu 17.10

Re: dubbi su apt

Messaggio da milazzo87 »

Come potete leggere da qui:
Currently the apt binary supports the following commands:

* list: which is similar to dpkg list and can be used with flags like
--installed or --upgradable.
* search: works just like apt-cache search but sorted alphabetically.
* show: works like apt-cache show but hide some details that people are less likely to care about (like the hashes). The full record is still available via apt-cache show of course.
* update: just like the regular apt-get update with color output enabled.
* install,remove: adds progress output during the dpkg run.
* upgrade: the same as apt-get dist-upgrade –with-new-pkgs.
* full-upgrade: a more meaningful name for dist-upgrade.
* edit-sources: edit sources.list using $EDITOR.

Here is what the new progress looks like in 1.0:
apt-progress http://mvogt.files.wordpress.com/2014/0 ... ogress.png

You can enable/disable the install progress via:

# echo 'Dpkg::Progress-Fancy "1"' > /etc/apt/apt.conf.d/99progressbar
La pisciata in compagnia è di sinistra, il cesso è sempre in fondo a destra. [cit. G. Gaber]
xneo
Prode Principiante
Messaggi: 83
Iscrizione: lunedì 21 aprile 2014, 12:55

Re: dubbi su apt

Messaggio da xneo »

Quindi, per me che sono alle prime armi , cosa mi consigliate usare? apt o apt-get?
Scrivi risposta

Ritorna a “Bar Ubuntu”

Chi c’è in linea

Visualizzano questa sezione: Bing [Bot] e 15 ospiti