reduce apt-get update download size
-
- Posts: 145
- Joined: 2011-01-12 16:25
reduce apt-get update download size
Hi
I want to know is there any way to reduce "apt-get update" size of download ?
I want a debian on my vps server and when i do the update, always download smaller than 1 MB, But on my desktop when ever i do update get larger that 10 MB !!
Why ?
I want to know is there any way to reduce "apt-get update" size of download ?
I want a debian on my vps server and when i do the update, always download smaller than 1 MB, But on my desktop when ever i do update get larger that 10 MB !!
Why ?
Last edited by alirezaimi on 2020-04-19 04:15, edited 2 times in total.
Re: reduce apt-get update download size
They all are security updates, if you are using stable. Don't know how could you restrict updates only if patched packet(s) would be less than 1MB.
Vulnerabilities just are found in many packets, I would try think other solution.
EDIT: And to your second question, graphical libraries that desktop environments require tend to be a lot larger than text only CLI programs.
Vulnerabilities just are found in many packets, I would try think other solution.
EDIT: And to your second question, graphical libraries that desktop environments require tend to be a lot larger than text only CLI programs.
-
- Posts: 145
- Joined: 2011-01-12 16:25
Re: reduce apt-get update download size
I use debian stable on my server with testing repo active on it.
but in my laptop have only testing repo, and the download rate is not same !
but in my laptop have only testing repo, and the download rate is not same !
Re: reduce apt-get update download size
Testing gets also development updates, stable only security updates as I said.
Re: reduce apt-get update download size
alirezaimi wrote:I use debian stable on my server with testing repo active on it.
-
- Posts: 145
- Joined: 2011-01-12 16:25
Re: reduce apt-get update download size
Why!?4D696B65 wrote:alirezaimi wrote:I use debian stable on my server with testing repo active on it.
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 135 times
Re: reduce apt-get update download size
The package manager will favour the newest versions by default so if you've added testing sources without some intelligent pinning then you're now running a development branch on your server. Good luck with that.
Check
Check
Code: Select all
cat /etc/{os-release,debian_version}
deadbang
-
- Posts: 145
- Joined: 2011-01-12 16:25
Re: reduce apt-get update download size
I pinning it, you and other worry guy do not worry about that, please answer real question if you and other guys have some intelligence and do not go other ways.Head_on_a_Stick wrote:The package manager will favour the newest versions by default so if you've added testing sources without some intelligent pinning then you're now running a development branch on your server. Good luck with that.
CheckCode: Select all
cat /etc/{os-release,debian_version}
- stevepusser
- Posts: 13027
- Joined: 2009-10-06 05:53
- Has thanked: 45 times
- Been thanked: 92 times
Re: reduce apt-get update download size
(starting up the popcorn machine)
This should be good. Remember, no face palming!
This should be good. Remember, no face palming!
MX Linux packager and developer
Re: reduce apt-get update download size
It is customary when asking people for help to not insult them. Just saying.alirezaimi wrote:I pinning it, you and other worry guy do not worry about that, please answer real question if you and other guys have some intelligence and do not go other ways.Head_on_a_Stick wrote:The package manager will favour the newest versions by default so if you've added testing sources without some intelligent pinning then you're now running a development branch on your server. Good luck with that.
CheckCode: Select all
cat /etc/{os-release,debian_version}
-
- Posts: 677
- Joined: 2018-05-10 19:34
- Location: Some where out west
- Been thanked: 1 time
Re: reduce apt-get update download size
Pleas read: https://wiki.debian.org/DontBreakDebianalirezaimi wrote:Why!?4D696B65 wrote:alirezaimi wrote:I use debian stable on my server with testing repo active on it.
I will even copy / paste the relevant part here,
He is laughing, because you are the one showing a lack of intelligence, but to answer your question, :Don't make a FrankenDebian
Debian Stable should not be combined with other releases. If you're trying to install software that isn't available in the current Debian Stable release, it's not a good idea to add repositories for other Debian releases. The problems might not happen right away, but the next time you install updates.
The reason things can break is because the software packaged for one Debian release is built to be compatible with the rest of the software for that release. For example, installing packages from bullseye on a buster system could also install newer versions of core libraries including libc6. This results in a system that is not testing or stable but a broken mix of the two.
Repositories that can create a FrankenDebian if used with Debian Stable:
Debian testing release (currently bullseye)
Debian unstable release (also known as sid)
Ubuntu, Mint or other derivative repositories are not compatible with Debian!
Ubuntu PPAs
Remove the testing repos, that should reduce it considerably,...The testing repo is constantly getting updates, since it is Still In Development, Try using some logic,Post by alirezaimi » 2020-04-17 15:43
Hi
I want to know is there any way to reduce "apt-get update" size of download ?
Hope you don't mind, even though I was not invited, but I enjoy a show and popcorn, can I join the party .stevepusser wrote:(starting up the popcorn machine)
This should be good. Remember, no face palming!
Please Read What we expect you have already Done
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!
-
- Posts: 677
- Joined: 2018-05-10 19:34
- Location: Some where out west
- Been thanked: 1 time
Re: reduce apt-get update download size
As I mentioned, you should remove the testing repo, especially if it includes desktop environment, by the way , What DE ? FG XFce, Kde, Gnome,... some are more bloat then other, there is no need for DE on a server any way, getting rid of the DE bloat, might reduce it a little...alirezaimi »I want a debian on my vps server and when i do the update, always download smaller than 1 MB
Just now, upgrading my Debian testing, 750 mb !...Good luck getting it down to less then 1 mb, I don't think it is possible, but:
Postby Head_on_a_Stick » 2020-04-18 10:48
The package manager will favour the newest versions by default so if you've added testing sources without some intelligent pinning then you're now running a development branch on your server. Good luck with that.
Check
Code: Select all
Code: Select all cat /etc/{os-release,debian_version} [/check][/quote] Even with intelligent pinning, 1mb is almost nothing, and the DE packages are a huge amount of bloat, You can try removing the testing repos, and see if it makes a difference,..if it doesn't then you can all ways put it back,... use the '#' in front of the lines for testing, that comments it out (disables), then if you want it back , just remove the #. Ahh, @Steve, Please pass the pop corn,... thanks
Please Read What we expect you have already Done
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!
-
- Posts: 677
- Joined: 2018-05-10 19:34
- Location: Some where out west
- Been thanked: 1 time
Re: reduce apt-get update download size
That is expected, logical, you are using / comparing 2 different Distros, logically the download rate would be different, with 2 different distros:alirezaimi wrote:I use debian stable on my server with testing repo active on it.
but in my laptop have only testing repo, and the download rate is not same !
"my laptop have only testing repo": This is 1 distinct Debian distribution /versionfrom : https://wiki.debian.org/DontBreakDebianRepositories that can create a FrankenDebian if used with Debian Stable:
Debian testing release (currently bullseye)
==========================
"I use debian stable on my server with testing repo active on it" : This is another Distro all together, it is known as FrankenDebian. I hope this is not a production server, but any way, 2 different Debian versions, would have different update/upgrade sizes,... I really don't see the point in continuing this topic..just remove all the testing repos, and also remove all the DE packages, try to clean up the mess, and get it back to just pure Debian stable, then check your updates/upgrades, they will be a lot lower, I don't know if it will be below 1 mb, but it will be at the minimum, with only security updates. So please mark this as solved, and let's move on to something else ...
Please Read What we expect you have already Done
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!
- Hallvor
- Global Moderator
- Posts: 2096
- Joined: 2009-04-16 18:35
- Location: Kristiansand, Norway
- Has thanked: 160 times
- Been thanked: 226 times
Re: reduce apt-get update download size
Wouldn't it save a little bandwidth to comment out the deb-src repositories? Unless the OP is planning to build from source, that is.
Code: Select all
deb http://ftp.no.debian.org/debian/ buster main non-free contrib
#deb-src http://ftp.no.debian.org/debian/ buster main non-free contrib
deb http://security.debian.org/debian-security buster/updates main contrib non-free
#deb-src http://security.debian.org/debian-security buster/updates main contrib non-free
# buster-updates, previously known as 'volatile'
deb http://ftp.no.debian.org/debian/ buster-updates main contrib non-free
#deb-src http://ftp.no.debian.org/debian/ buster-updates main contrib non-free
hallvor@debian-thinkpad:~$
[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