reduce apt-get update download size

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
alirezaimi
Posts: 145
Joined: 2011-01-12 16:25

reduce apt-get update download size

#1 Post by alirezaimi »

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 ?
Last edited by alirezaimi on 2020-04-19 04:15, edited 2 times in total.

arzgi
Posts: 1425
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 57 times

Re: reduce apt-get update download size

#2 Post by arzgi »

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.

alirezaimi
Posts: 145
Joined: 2011-01-12 16:25

Re: reduce apt-get update download size

#3 Post by alirezaimi »

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 !

arzgi
Posts: 1425
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 57 times

Re: reduce apt-get update download size

#4 Post by arzgi »

Testing gets also development updates, stable only security updates as I said.

User avatar
4D696B65
Site admin
Site admin
Posts: 2707
Joined: 2009-06-28 06:09
Been thanked: 89 times

Re: reduce apt-get update download size

#5 Post by 4D696B65 »

alirezaimi wrote:I use debian stable on my server with testing repo active on it.
:lol:

alirezaimi
Posts: 145
Joined: 2011-01-12 16:25

Re: reduce apt-get update download size

#6 Post by alirezaimi »

4D696B65 wrote:
alirezaimi wrote:I use debian stable on my server with testing repo active on it.
:lol:
Why!?

User avatar
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

#7 Post by Head_on_a_Stick »

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

cat /etc/{os-release,debian_version}
deadbang

alirezaimi
Posts: 145
Joined: 2011-01-12 16:25

Re: reduce apt-get update download size

#8 Post by alirezaimi »

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.

Check

Code: Select all

cat /etc/{os-release,debian_version}
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.

User avatar
stevepusser
Posts: 13027
Joined: 2009-10-06 05:53
Has thanked: 45 times
Been thanked: 92 times

Re: reduce apt-get update download size

#9 Post by stevepusser »

(starting up the popcorn machine)

This should be good. Remember, no face palming!
MX Linux packager and developer

sgage
Posts: 87
Joined: 2013-03-10 21:00
Has thanked: 1 time
Been thanked: 2 times

Re: reduce apt-get update download size

#10 Post by sgage »

alirezaimi wrote:
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.

Check

Code: Select all

cat /etc/{os-release,debian_version}
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.
It is customary when asking people for help to not insult them. Just saying.

cuckooflew
Posts: 677
Joined: 2018-05-10 19:34
Location: Some where out west
Been thanked: 1 time

Re: reduce apt-get update download size

#11 Post by cuckooflew »

alirezaimi wrote:
4D696B65 wrote:
alirezaimi wrote:I use debian stable on my server with testing repo active on it.
:lol:
Why!?
Pleas read: https://wiki.debian.org/DontBreakDebian
I will even copy / paste the relevant part here,
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
He is laughing, because you are the one showing a lack of intelligence, but to answer your question, :
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 ?
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, :idea:
stevepusser wrote:(starting up the popcorn machine)

This should be good. Remember, no face palming!
Hope you don't mind, even though I was not invited, but I enjoy a show and popcorn, can I join the party :?: . :mrgreen:
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!

cuckooflew
Posts: 677
Joined: 2018-05-10 19:34
Location: Some where out west
Been thanked: 1 time

Re: reduce apt-get update download size

#12 Post by cuckooflew »

alirezaimi »I want a debian on my vps server and when i do the update, always download smaller than 1 MB
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...
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!

cuckooflew
Posts: 677
Joined: 2018-05-10 19:34
Location: Some where out west
Been thanked: 1 time

Re: reduce apt-get update download size

#13 Post by cuckooflew »

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 !
That is expected, logical, you are using / comparing 2 different Distros, logically the download rate would be different, with 2 different distros:
from : https://wiki.debian.org/DontBreakDebianRepositories that can create a FrankenDebian if used with Debian Stable:

Debian testing release (currently bullseye)
"my laptop have only testing repo": This is 1 distinct Debian distribution /version
==========================
"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!

User avatar
Hallvor
Global Moderator
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

#14 Post by Hallvor »

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

Post Reply