Bernd
2021-02-16 20:47:15 ⋅ 3y
No. 110036
to update the apt-get itself type:
[b]apt-get update[/b]
pretty straightforward, right?
to update all packages type:
[b]apt-get upgrade[/b]
pretty simple, right?
to update a single package type:
[b]apt-get update && apt-get upgrade[/b] and a [b]package name[/b]
because why not both, right?
Bernd
2021-02-16 21:13:33 ⋅ 3y
No. 110038
Looks ok for me. Where is the catch?
How do you expect it to work? Read your mind?
Bernd
2021-02-16 23:19:42 ⋅ 3y
No. 110054
>>110038
one word for update
arguments to update either self or everything
Bernd
2021-02-17 16:45:08 ⋅ 3y
No. 110118
>>110054
You don't understand what [b]update[/b] 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 [i]apt-get upgrade <package_name>[/i] without calling [i]apt-get update[/i] before and install a package. Here is your one word.
Bernd
2021-02-17 17:08:36 ⋅ 3y
No. 110120
>>110118
>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
Bernd
2021-02-17 17:15:32 ⋅ 3y
No. 110123
>>110120
>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.
Bernd
2021-02-17 17:31:40 ⋅ 3y
No. 110130
>>110123
>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