Lite mode. Switch to Full
invert_colors
logout
/tech/
/tech/
Post a Replyarrow_backarrow_downward
UkraineBernd2021-02-16 20:47:15 · 5yNo. 110036reply
to update the apt-get itself type:
 
apt-get update
 
pretty straightforward, right?
 
 
to update all packages type:
 
apt-get upgrade
 
pretty simple, right?
 
 
to update a single package type:
 
apt-get update && apt-get upgrade and a package name
 
because why not both, right?
RussiaBernd2021-02-16 21:13:33 · 5yNo. 110038reply
Looks ok for me. Where is the catch?
How do you expect it to work? Read your mind?
BerndBernd2021-02-16 23:19:42 · 5yNo. 110054reply
 
one word for update
 
arguments to update either self or everything
RussiaBernd2021-02-17 16:45:08 · 5yNo. 110118reply
You don't understand what update actually does and does not.
It does not install or update any packages, that's why it does not require any arguments.
Actually, you can execute apt-get upgrade <package_name> without calling apt-get update before and install a package. Here is your one word.
UkraineBernd2021-02-17 17:08:36 · 5yNo. 110120reply
 
>Actually, you can execute apt-get upgrade <package_name> without calling apt-get update
 
didn't worked for me this way
 
and the line i posted in OP i found in a tutorial:
 
https://www.3cx.com/blog/voip-howto/os-security-updates-debian/#:~:text=To%20update%20a%20single%20package,name%20we%20want%20to%20update.&text=Press%20%E2%80%9Cspace%E2%80%9D%20to%20scroll%20through,apt%2Dget%20upgrade%20packagename%20command.
 
so i assumed apt-get is just retarded
RussiaBernd2021-02-17 17:15:32 · 5yNo. 110123reply
>didn't worked for me this way
I'm 98% sure you did something wrong. Have you had somehow older version installed and then tried to install something newer?
 
>apt-get is just retarded
That's true, but it also applies to any other package manager which based on apt lib. So you won't find anything better most likely.
UkraineBernd2021-02-17 17:31:40 · 5yNo. 110130reply
>Have you had somehow older version installed and then tried to install something newer?
 
yes, i tried to upgrade openjdk, but apt-get threw "package not found" exception, despite the package was definitely installed
 
this is why i started to think that apt-get (or whatever is in under the hood) is retarded
 
>So you won't find anything better most likely.
 
that Ubuntu machine is not mine
on my machine i use pacman
pacman options are less intuitive i'd say, but way easier to memorize IMO
/tech/Post a Replyarrow_backarrow_upward