Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > Debian Linux > Debian Linux support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-19-2008, 07:56 AM
ANTant@zimage.com
 
Posts: n/a
Default How to ignore packages/programs with apt-get?

Does apt-get have a way to ignore packages/programs that I don't want to
download/install/upgrade? Right now, I am using an old version of Pan. I do not like the newer
one under development.

Thank you in advance.
--
"In a battle between elephants, the ants get squashed." --Thailand
/\___/\
/ /\ /\ \ Phillip (Ant) @ http://antfarm.ma.cx (Personal Web Site)
| |o o| | Ant's Quality Foraged Links (AQFL): http://aqfl.net
\ _ / Please remove ANT if replying by e-mail.
( )
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-19-2008, 07:56 AM
anders.jackson@gmail.com
 
Posts: n/a
Default Re: How to ignore packages/programs with apt-get?

ANTant@zimage.com wrote:
> Does apt-get have a way to ignore packages/programs that I don't want to
> download/install/upgrade?


No, apt-get can't do that for you.

What you want is to put a package "on hold" so that it isn't
automaticly selected for
upgrade by any debian package tool, like apt-get. And that you do with
aptitude.
So if you as root does this

aptitude hold pamp

it should set status hold on package pamp. Then apt-get will not
upgrade if you dont tell it to.

I would use aptitude before I use dpkg, apt-get or dselect . It's a
much better program to handle different packages. In script I would
use apt-get or aptitude.

> Thank you in advance.


Man pages are your friend

Good luck.
/Jxn

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-19-2008, 07:56 AM
ANTant@zimage.com
 
Posts: n/a
Default Re: How to ignore packages/programs with apt-get?

> > Does apt-get have a way to ignore packages/programs that I don't want to
> > download/install/upgrade?


> No, apt-get can't do that for you.


> What you want is to put a package "on hold" so that it isn't
> automaticly selected for
> upgrade by any debian package tool, like apt-get. And that you do with
> aptitude.
> So if you as root does this


> aptitude hold pamp


I tried that and got:
# aptitude hold pan
Reading package lists... Done
Building dependency tree... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Reading task descriptions... Done
Building tag database... Done
The following packages are unused and will be REMOVED:
aalib1 akode artsbuilder aspell bug-buddy cvs dia-libs edict esound file-roller gcalctool
gconf-editor
gnome-cups-manager gnome-games-data gnome-nettool gnome-system-tools gnome-themes gnome-themes-extras
gnome-utils
gnupg-agent gnupg2 gpdf gpgsm gstreamer0.8-misc gstreamer0.8-plugin-apps gstreamer0.8-tools
gtk2-engines-pixbuf
gtk2-engines-spherecrystal gtkhtml3.2 gucharmap imlib-base imlib11 kanjidic kaudiocreator kcoloredit
kdeaddons-kfile-plugins kdeartwork-misc kdeartwork-style kdeartwork-theme-icon
kdeartwork-theme-window
kdegraphics-kfile-plugins kdemultimedia-kappfinder-data kdemultimedia-kfile-plugins
kdepim-kio-plugins kdvi
kfilereplace kgamma kicker-applets kiconedit kimagemapeditor klettres-data klinkstatus kmid kmix
kmoon kmrml
knewsticker-scripts kolourpaint kommander konq-plugins korn kpdf kpovmodeler krec kruler kscd
kscreensaver
kscreensaver-xsavers ksig ksnapshot ksvg ktnef ktux kuickshow kview kviewshell kxsldbg
libboost-python1.32.0
libconvert-binhex-perl libfinance-quote-perl libgal2.2-1 libgal2.2-common libgda2-3 libgda2-common
libgle3
libgstreamer-gconf0.8-0 libgstreamer-plugins0.8-0 libgstreamer0.8-0 libgtkhtml3.2-11
libgtksourceview-common
libhtml-tableextract-perl libio-stringy-perl libksba8 libmime-perl libnetpbm10
libnews-nntpclient-perl libpth2
libsamplerate0 libtiff-tools netpbm noatun noatun-plugins openoffice.org pinentry-qt synaptic
vim-common vino
xscreensaver-gl zenity
The following packages have been kept back:
pan python python-glade2 python-minimal python-uno transcode
0 packages upgraded, 0 newly installed, 109 to remove and 6 not upgraded.
Need to get 0B of archives. After unpacking 250MB will be freed.
Do you want to continue? [Y/n/?] n
Abort.


# apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
The following packages have been kept back:
pan python python-glade2 python-minimal python-uno transcode
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.

I can't upgrade the othber packages at the moment, but that's OK. I do want to ignore Pan.


> it should set status hold on package pamp. Then apt-get will not
> upgrade if you dont tell it to.


How would I revert the request then if I change my mind?


> I would use aptitude before I use dpkg, apt-get or dselect . It's a
> much better program to handle different packages. In script I would
> use apt-get or aptitude.


Ah, I always used apt-get. Sometimes dpkg.


> Man pages are your friend


Yeah, but I didn't see anything about ignoring packages unless I searched badly.
--
"In a battle between elephants, the ants get squashed." --Thailand
/\___/\
/ /\ /\ \ Phillip (Ant) @ http://antfarm.ma.cx (Personal Web Site)
| |o o| | Ant's Quality Foraged Links (AQFL): http://aqfl.net
\ _ / Please remove ANT if replying by e-mail.
( )
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-19-2008, 07:56 AM
JD
 
Posts: n/a
Default Re: How to ignore packages/programs with apt-get?

On 2006-08-18, ANTant@zimage.com <ANTant@zimage.com> wrote:
> Does apt-get have a way to ignore packages/programs that I don't want to
> download/install/upgrade? Right now, I am using an old version of Pan. I do not like the newer
> one under development.


echo "pan hold"|dpkg --set-selections
will do the trick. Unhold will reverse it.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-19-2008, 07:56 AM
ANTant@zimage.com
 
Posts: n/a
Default Re: How to ignore packages/programs with apt-get?

JD <jd@something.com> wrote:
> On 2006-08-18, ANTant@zimage.com <ANTant@zimage.com> wrote:
> > Does apt-get have a way to ignore packages/programs that I don't want to
> > download/install/upgrade? Right now, I am using an old version of Pan. I do not like the newer
> > one under development.


> echo "pan hold"|dpkg --set-selections
> will do the trick. Unhold will reverse it.


I must be doing this wrong or something:

ANTian:/home/ant/download# echo "pan hold"|dpkg --set-selections
ANTian:/home/ant/download# apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
The following packages have been kept back:
pan python python-glade2 python-minimal python-uno transcode
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
--
"In a battle between elephants, the ants get squashed." --Thailand
/\___/\
/ /\ /\ \ Phillip (Ant) @ http://antfarm.ma.cx (Personal Web Site)
| |o o| | Ant's Quality Foraged Links (AQFL): http://aqfl.net
\ _ / Please remove ANT if replying by e-mail.
( )
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-19-2008, 07:56 AM
JD
 
Posts: n/a
Default Re: How to ignore packages/programs with apt-get?

On 2006-08-20, ANTant@zimage.com <ANTant@zimage.com> wrote:
> JD <jd@something.com> wrote:
>> On 2006-08-18, ANTant@zimage.com <ANTant@zimage.com> wrote:
>> > Does apt-get have a way to ignore packages/programs that I don't want to
>> > download/install/upgrade? Right now, I am using an old version of Pan. I do not like the newer
>> > one under development.

>
>> echo "pan hold"|dpkg --set-selections
>> will do the trick. Unhold will reverse it.

>
> I must be doing this wrong or something:
>
> ANTian:/home/ant/download# echo "pan hold"|dpkg --set-selections
> ANTian:/home/ant/download# apt-get upgrade
> Reading package lists... Done
> Building dependency tree... Done
> The following packages have been kept back:
> pan python python-glade2 python-minimal python-uno transcode
> 0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.


Looks good to me...

You may like to upgrade python
apt-get install python python-glade2 python-minimal python-uno transcode

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-19-2008, 07:56 AM
ANTant@zimage.com
 
Posts: n/a
Default Re: How to ignore packages/programs with apt-get?

> >> > Does apt-get have a way to ignore packages/programs that I don't want to
> >> > download/install/upgrade? Right now, I am using an old version of Pan. I do not like the newer
> >> > one under development.

> >
> >> echo "pan hold"|dpkg --set-selections
> >> will do the trick. Unhold will reverse it.

> >
> > I must be doing this wrong or something:
> >
> > ANTian:/home/ant/download# echo "pan hold"|dpkg --set-selections
> > ANTian:/home/ant/download# apt-get upgrade
> > Reading package lists... Done
> > Building dependency tree... Done
> > The following packages have been kept back:
> > pan python python-glade2 python-minimal python-uno transcode
> > 0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.


> Looks good to me...


> You may like to upgrade python
> apt-get install python python-glade2 python-minimal python-uno transcode


Uh, it looks the same like before. I don't want Pan to be shown. I want it to pretend that I
don't have it so it won't upgrade.

As for python python-glade2 python-minimal python-uno transcode, I can't:

# apt-get install python python-glade2 python-minimal python-uno
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
python-gtk2
Suggested packages:
python-doc python-tk python-profiler
The following packages will be REMOVED:
configlet-frontends hal-device-manager python-configlet python2.3-configlet
python2.3-glade2 python2.3-gnome2
python2.3-gtk2 python2.4-glade2 python2.4-gnome2 python2.4-gtk2
The following NEW packages will be installed:
python-gtk2
The following packages will be upgraded:
python python-glade2 python-minimal python-uno
4 upgraded, 1 newly installed, 10 to remove and 3 not upgraded.
Need to get 1674kB of archives.
After unpacking 2781kB disk space will be freed.
Do you want to continue [Y/n]?


# apt-get install transcode
Reading package lists... Done
Building dependency tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
transcode: Depends: libdps1 (> 4.1.0) but it is not going to be installed
Depends: libmagick6 but it is not going to be installed
E: Broken packages
# apt-get install transcode libdps1 libmagick6
Reading package lists... Done
Building dependency tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libdps1: Depends: xfree86-common but it is not going to be installed
E: Broken packages
# apt-get install transcode libdps1 libmagick6 xfree86-common
Reading package lists... Done
Building dependency tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libdps1: Depends: libice6 but it is not going to be installed or
xlibs (> 4.1.0) but it is not going to be installed
Depends: libsm6 but it is not going to be installed or
xlibs (> 4.1.0) but it is not going to be installed
Depends: libxext6 but it is not going to be installed or
xlibs (> 4.1.0) but it is not going to be installed
Depends: libxt6 but it is not going to be installed or
xlibs (> 4.1.0) but it is not going to be installed
libmagick6: Depends: libice6 but it is not going to be installed or
xlibs (> 4.1.0) but it is not going to be installed
Depends: libsm6 but it is not going to be installed or
xlibs (> 4.1.0) but it is not going to be installed
Depends: libx11-6 but it is not going to be installed or
xlibs (> 4.1.0) but it is not going to be installed
Depends: libxext6 but it is not going to be installed or
xlibs (> 4.1.0) but it is not going to be installed
Depends: libxt6 but it is not going to be installed or
xlibs (> 4.1.0) but it is not going to be installed
transcode: Depends: aalib1 (>= 1.2)
Depends: libaudio2 but it is not going to be installed
Depends: libgtk1.2 (>= 1.2.10-4) but it is not going to be installed
Depends: libice6 but it is not going to be installed or
xlibs (> 4.1.0) but it is not going to be installed
Depends: libsm6 but it is not going to be installed or
xlibs (> 4.1.0) but it is not going to be installed
Depends: libx11-6 but it is not going to be installed or
xlibs (> 4.1.0) but it is not going to be installed
Depends: libxaw7 (> 4.1.0) but it is not going to be installed
Depends: libxext6 but it is not going to be installed or
xlibs (> 4.1.0) but it is not going to be installed
Depends: libxi6 but it is not going to be installed or
xlibs (> 4.1.0) but it is not going to be installed
Depends: libxpm4 but it is not going to be installed or
xlibs (> 4.1.0) but it is not going to be installed
Depends: libxt6 but it is not going to be installed or
xlibs (> 4.1.0) but it is not going to be installed
Depends: libxv1 but it is not going to be installed
Depends: xterm but it is not going to be installed or
x-terminal-emulator
E: Broken packages

I have to wait for the other packages to be upgraded first.
--
"Ever watch ants just crawling around? They walk in that single straight line, a long, a long, long mile of ants. Sometimes they will walk over and pick up their dead friends and carry those around. I'm pretty sure it's because they can get in the carpool lane and pass up that line." --Ellen DeGeneres
/\___/\
/ /\ /\ \ Phillip (Ant) @ http://antfarm.ma.cx (Personal Web Site)
| |o o| | Ant's Quality Foraged Links (AQFL): http://aqfl.net
\ _ / Please remove ANT if replying by e-mail.
( )
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-19-2008, 07:56 AM
anders.jackson@gmail.com
 
Posts: n/a
Default Re: How to ignore packages/programs with apt-get?

ANTant@zimage.com wrote:
> > >> > Does apt-get have a way to ignore packages/programs that I don't want to
> > >> > download/install/upgrade? Right now, I am using an old version of Pan. I do not like the newer
> > >> > one under development.
> > >
> > >> echo "pan hold"|dpkg --set-selections
> > >> will do the trick. Unhold will reverse it.
> > >
> > > I must be doing this wrong or something:
> > >
> > > ANTian:/home/ant/download# echo "pan hold"|dpkg --set-selections
> > > ANTian:/home/ant/download# apt-get upgrade
> > > Reading package lists... Done
> > > Building dependency tree... Done
> > > The following packages have been kept back:
> > > pan python python-glade2 python-minimal python-uno transcode
> > > 0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.


> Uh, it looks the same like before. I don't want Pan to be shown. I want it to pretend that I
> don't have it so it won't upgrade.


apt-get tells you what is put on hold. So you wont forget it. So, it
is as it should. Just ignor message, as it tells you what you want, to
have pan on hold.

> As for python python-glade2 python-minimal python-uno transcode, I can't:
>
> # apt-get install python python-glade2 python-minimal python-uno
> Reading package lists... Done
> Building dependency tree... Done
> The following extra packages will be installed:
> python-gtk2
> Suggested packages:
> python-doc python-tk python-profiler
> The following packages will be REMOVED:
> configlet-frontends hal-device-manager python-configlet python2.3-configlet
> python2.3-glade2 python2.3-gnome2
> python2.3-gtk2 python2.4-glade2 python2.4-gnome2 python2.4-gtk2
> The following NEW packages will be installed:
> python-gtk2
> The following packages will be upgraded:
> python python-glade2 python-minimal python-uno
> 4 upgraded, 1 newly installed, 10 to remove and 3 not upgraded.


All those python2.3-glade2 and python2.4-glade2 etc is replaced with
python-glade2.
So all those old version-dependent packages will go away. There MIGHT
be some packages that has not gone through the transaktion yet, byt
they will. Check the bug site, and file a bug if they dont have
changed dependances accordingly.

In this case, you need to upgrade configlet-frontends and
hal-device-manager.
And also install python-configlet, python-glade2, python-gnome2
python-gtk2 and remove all version dependant python-packages.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-19-2008, 07:56 AM
ANTant@zimage.com
 
Posts: n/a
Default Re: How to ignore packages/programs with apt-get?

anders.jackson@gmail.com <anders.jackson@gmail.com> wrote:
> ANTant@zimage.com wrote:
> > > >> > Does apt-get have a way to ignore packages/programs that I don't want to
> > > >> > download/install/upgrade? Right now, I am using an old version of Pan. I do not like the newer
> > > >> > one under development.
> > > >
> > > >> echo "pan hold"|dpkg --set-selections
> > > >> will do the trick. Unhold will reverse it.
> > > >
> > > > I must be doing this wrong or something:
> > > >
> > > > ANTian:/home/ant/download# echo "pan hold"|dpkg --set-selections
> > > > ANTian:/home/ant/download# apt-get upgrade
> > > > Reading package lists... Done
> > > > Building dependency tree... Done
> > > > The following packages have been kept back:
> > > > pan python python-glade2 python-minimal python-uno transcode
> > > > 0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.


> > Uh, it looks the same like before. I don't want Pan to be shown. I want it to pretend that I
> > don't have it so it won't upgrade.


> apt-get tells you what is put on hold. So you wont forget it. So, it
> is as it should. Just ignor message, as it tells you what you want, to
> have pan on hold.


Oh. I see. That was strange to me.


> > As for python python-glade2 python-minimal python-uno transcode, I can't:
> >
> > # apt-get install python python-glade2 python-minimal python-uno
> > Reading package lists... Done
> > Building dependency tree... Done
> > The following extra packages will be installed:
> > python-gtk2
> > Suggested packages:
> > python-doc python-tk python-profiler
> > The following packages will be REMOVED:
> > configlet-frontends hal-device-manager python-configlet python2.3-configlet
> > python2.3-glade2 python2.3-gnome2
> > python2.3-gtk2 python2.4-glade2 python2.4-gnome2 python2.4-gtk2
> > The following NEW packages will be installed:
> > python-gtk2
> > The following packages will be upgraded:
> > python python-glade2 python-minimal python-uno
> > 4 upgraded, 1 newly installed, 10 to remove and 3 not upgraded.


> All those python2.3-glade2 and python2.4-glade2 etc is replaced with
> python-glade2.
> So all those old version-dependent packages will go away. There MIGHT
> be some packages that has not gone through the transaktion yet, byt
> they will. Check the bug site, and file a bug if they dont have
> changed dependances accordingly.


> In this case, you need to upgrade configlet-frontends and
> hal-device-manager.
> And also install python-configlet, python-glade2, python-gnome2
> python-gtk2 and remove all version dependant python-packages.


Yeah, it has been a few weeks. Sometimes they are slow.
--
"Ever watch ants just crawling around? They walk in that single straight line, a long, a long, long mile of ants. Sometimes they will walk over and pick up their dead friends and carry those around. I'm pretty sure it's because they can get in the carpool lane and pass up that line." --Ellen DeGeneres
/\___/\
/ /\ /\ \ Phillip (Ant) @ http://antfarm.ma.cx (Personal Web Site)
| |o o| | Ant's Quality Foraged Links (AQFL): http://aqfl.net
\ _ / Please remove ANT if replying by e-mail.
( )
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 01-19-2008, 07:57 AM
anders.jackson@gmail.com
 
Posts: n/a
Default Re: How to ignore packages/programs with apt-get?

ANTant@zimage.com wrote:
> anders.jackson@gmail.com <anders.jackson@gmail.com> wrote:
> > In this case, you need to upgrade configlet-frontends and
> > hal-device-manager.
> > And also install python-configlet, python-glade2, python-gnome2
> > python-gtk2 and remove all version dependant python-packages.

>
> Yeah, it has been a few weeks. Sometimes they are slow.


If you have selected a package to install, it will not remove so that a
new package can be automaticly installed. You have to remove them
yourself. If it has been installed as a dependecie of another package
(automaticly installed), it will be removed with that package that
installed it (if no other package needs it).

apt-get -u install python2.4-gtk2- python-gtk2

should work, as you remove package if you put a "-" after the package
name (not tested, its all from memory, check with man pages).

Or use aptitude, as it is good in assisting you handling stuff like
this.

Good luck
/Jxn

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:00 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
UnixAdminTalk.com

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412