Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
use apt-get update to upgrade
use apt-get update to upgrade
Hello,
Recently I changed from linux mint/ubuntu to Debian Stretch Cinnamon. Now I’ve got a question. With Ubuntu (Unity)/Linux mint (Cinnamon) I get a sign from an icon that I have to upgrade my system. With Cinnamon I use gnome-packagekit with pk-update-icon.
Now I have to use apt-get update to update the repositories otherwise I cannot upgrade Debian. Is this normal? Can I change this by updating the repositories each day without using the command line? How can I do this?
I thank you for your answer!
Recently I changed from linux mint/ubuntu to Debian Stretch Cinnamon. Now I’ve got a question. With Ubuntu (Unity)/Linux mint (Cinnamon) I get a sign from an icon that I have to upgrade my system. With Cinnamon I use gnome-packagekit with pk-update-icon.
Now I have to use apt-get update to update the repositories otherwise I cannot upgrade Debian. Is this normal? Can I change this by updating the repositories each day without using the command line? How can I do this?
I thank you for your answer!
Re: use apt-get update to upgrade
Your whole system? Do you mean update your packages or perform a dist upgrade? I think you mean the former.smily01 wrote:I get a sign from an icon that I have to upgrade my system
You're not updating your repos. Repos are where you get your packages and updates from. You're updating your own local packages.smily01 wrote:Now I have to use apt-get update to update the repositories
Yes.smily01 wrote:Is this normal?
Again, you are not updating the repos but your local packages. If you are using Debian I would get into the habit of using the command line, don't be scared of it and don't try to fall back on GUIs. Updating is as simple as:smily01 wrote:Can I change this by updating the repositories each day without using the command line? How can I do this?
Code: Select all
sudo apt update
Code: Select all
sudo apt upgrade
Code: Select all
apt-cache search <package>
Code: Select all
apt-cache show <package>
To answer your main question your DE should notify you when there are updates. However, I wouldn't rely on that and would just get into the habit of manually running sudo apt update every day. It takes about ten seconds.
I would also get into the habit of reading the Debian Wiki. It will answer a lot of your questions.
Re: use apt-get update to upgrade
Thanks for your answer!
I want ton update my whole system; update my packages with security updates. I'm familiar with the apt-get commands. Can't I use crontab or anacron?
I want ton update my whole system; update my packages with security updates. I'm familiar with the apt-get commands. Can't I use crontab or anacron?
- None1975
- df -h | participant
- Posts: 1410
- Joined: 2015-11-29 18:23
- Location: Russia, Kaliningrad
- Has thanked: 46 times
- Been thanked: 70 times
Re: use apt-get update to upgrade
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github
Debian Wiki | DontBreakDebian, My config files on github
-
- Posts: 1454
- Joined: 2015-08-30 20:14
Re: use apt-get update to upgrade
^Your first link tells aptitude is the main method of upgrading. It is not, that's outdated info.
Stick to the Lysander's commands. Learning apt isn't that hard, and for Stable you need to know maybe three to four commands in total.
Stick to the Lysander's commands. Learning apt isn't that hard, and for Stable you need to know maybe three to four commands in total.
- stevepusser
- Posts: 12930
- Joined: 2009-10-06 05:53
- Has thanked: 41 times
- Been thanked: 72 times
Re: use apt-get update to upgrade
Yes, you can. You can also set up unattended-upgrades if you want to risk one of those being a bad upgrade, though odds are very very low for that.smily01 wrote:Thanks for your answer!
I want ton update my whole system; update my packages with security updates. I'm familiar with the apt-get commands. Can't I use crontab or anacron?
MX Linux packager and developer
- Hallvor
- Global Moderator
- Posts: 2042
- Joined: 2009-04-16 18:35
- Location: Kristiansand, Norway
- Has thanked: 151 times
- Been thanked: 212 times
Re: use apt-get update to upgrade
I don't mean to be a ****, but low odds mean high probability.stevepusser wrote:
[...] though odds are very very low for that.
Smily01: Installing unattended-upgrades is the easiest. Security upgrades will be installed in the background, and the risk of something going wrong is very low.
Code: Select all
apt install unattended upgrades
Code: Select all
dpkg-reconfigure -plow unattended-upgrades
[HowTo] Install and configure Debian bookworm
Debian 12 | KDE Plasma | ThinkPad T440s | 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz | 12 GiB RAM | Mesa Intel® HD Graphics 4400 | 1 TB SSD
Debian 12 | KDE Plasma | ThinkPad T440s | 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz | 12 GiB RAM | Mesa Intel® HD Graphics 4400 | 1 TB SSD