How does all of the bundles over a certain manifold characterize the homotopy class of the base manifold? It is known that if $f:M\rightarrow N$ is a homotopy equivalent, then the the process of pullback gives a one-one correspondence between bundles over $N$ and $M$ up to isomorphism. Is the converse( that if $f$ gives a 1-1 correspondence between them, then $f$ is a homotopy equivalence)true? Or any counterexample?
By the way, are bundles of a fixed rank over a compact manifold finite up to isomorphism? And is there any characterization of them like the holomorphic line bundles as a first cohomology group of a certain sheaf? If so, is there any way to calculate?

$M,N$ are smooth manifolds, and I originally thought of real vector bundles. But since this is a wild guess, it might be better to think the most general bundles you could imagine that homotopy invariance holds, even though I only know the real case.
It seems algori's answer apply to all kind of vector bundles I can imagine, though a bit beyond me. Thanx very much. And any reference for your arguments? 
And I'd like to know whether homotopy invariance holds in fiber bundles.

Thanks all of you. But formally whose answer should I accept?
 A: If you are liberal enough as to what you consider to be "a bundle", then this is true. The reason is that the symmetric product
$$ G := SP^\infty(S^{n-1}) \simeq K(\mathbb{Z},n-1)$$
is a topological abelian group, and principal $G$-bundles are classified by maps to $BG \simeq K(\mathbb{Z}, n)$. Thus if $f : X \to Y$ induces a bijection between all fibre bundles, then it is a (co)homology equivalence.
Considering all principal $H$-bundles for $H$ a discrete group, one also sees that $f$ induces an isomorphism on $\pi_1$ (as $f_* : \mathrm{Hom}(\pi_1(X), H) \cong \mathrm{Hom}(\pi_1(Y), H)$ for all groups $H$ means $\pi_1(X) \to \pi_1(Y)$ is an isomorphism).
Thus $f$ has to be a weak homotopy equivalence. As the question as asked for compact smooth manifolds, which are homotopy equivalent to CW-complexes, $f$ is a homotopy equivalence.
--------Edit--------
As TG points out in the comments, $\pi_1$ equivalence and homology equivalence are not enough to deduce weak homotopy equivalence without a simpleness assumption.
Thus: for each discrete group $H$ and $H$-module $V$ we can form
$$G := K(V, n-1) \rtimes H$$
a topological group. A concrete model for $K(V, n-1)$ can be taken to be $SP^\infty_V(S^{n-1})$, the symmetric product of the sphere with labels in $V$, on which $H$ acts on the labels. A principal $G$-bundle over $X$ is classified by a map to the total space of the fibration
$$K(V, n) \to BG \to BH,$$
and this consists of a homomorphism $f:\pi_1(X) \to H$ and a twisted cohomology class in $H^n(X; f^*V)$.
If I am not mistaken again, a map inducing a $\pi_1$-iso and an iso on cohomology with all local coefficients is indeed a weak equivalence.
A: It all depends on which bundles we are considering. If we take topological vector bundles with structure group a Lie group $G$, then there aren't any non-trivial bundles over the 3-sphere: we have $\pi_3(BG)=\pi_2(G_0)=0$ where $G_0$ is the connected component of the unit of $G$.
A: Let me attempt to summarise some basic facts. 
Let $G$ be a Lie (say) group, and let's let $M$ and $N$ be smooth compact manifolds as in the question. A principal $G$-bundle on $N$ is a bundle with structure group $G$ and fibre $G$, and transition functions given by left translation. Alternatively, a principal $G$-bundle on $N$ is a free $G$-space $\tilde{N}$ with orbit space $N$. Principal $G$ bundles on $N$ have a nice homotopy classification. Namely, the set of isomorphism classes of principal $G$-bundles is in one-to-one correspondence with the set of homotopy classes $[N,BG]$, where $BG$ is a classifying space of the group $G$.
Not only that, the classification is functorial. Given a principal $G$-bundle $\xi$ on $N$ and a map $f\colon M\to N$, the pullback construction gives you a bundle $f^{\ast}\xi$ on $M$, and the corresponding operation on homotopy classes $f^{\ast}\colon [N,BG]\to [M,BG]$ is simply pre-composition with the homotopy class of $f$. This implies that a homotopy equivalence $f\colon M\to N$ gives a one-to-one correspondence between isomorphism classes of principal $G$-bundles over $N$ and $M$.
Now let $G$ be a subgroup of $Gl(n,\mathbb{R})$. It turns out that rank $n$ vector bundles with structure group $G$ are pretty closely related to principal $G$-bundles. In fact the isomorphism classes of these two objects correspond. You can read about this in these notes (see Proposition 4.1) or in the classic book reference "Fibre bundles" by Dale Husemoller. 
Two special cases relevant to your second paragraph:


*

*If $G=O(1)$ then we are classifying real line bundles. Since $O(1)\cong \mathbb{Z}_2$ we have $BO(1)=K(\mathbb{Z}_2,1)=\mathbb{R}P^{\infty}$, and real line bundles on $M$ are classified by elements of $[M,K(\mathbb{Z}_2,1)]\cong H^1(M;\mathbb{Z}_2)$.


Since you assume $M$ is compact, this will imply that there are finitely many real line bundles on $M$ (up to isomorphism).


*

*If $G=U(1)$ then $BU(1)=K(\mathbb{Z},2)=\mathbb{C}P^{\infty}$ and complex line bundles are classified by $[M,K(\mathbb{Z},2)]\cong H^2(M;\mathbb{Z})$.


Thus for any compact manifold $M$ with nonzero second Betti number, there are infinitely many non-isomorphic complex line bundles over $M$.
A similar homotopy classification holds for bundles with more general fibres. In particular, given a $G$-space $F$ and a principal $G$-bundle, one can build a fibre bundle with fibre $F$ and structure group $G$. Also you can go the other way; each fibre bundle has an underlying principal bundle (see Husemoller chapter 4). So the answer to your final question is yes. 
A: All the above answers are great, but as you are just learning this stuff, the following might be helpful. Vector/$G$-bundles contain actual geometric information! The tangent bundle, for example, tells you a lot about the geometric structure of the underlying manifold (some definitions of curvature etc.). Now a homotopy theorist can measure these things using cohomology and homotopy as described above by Algori and Mark Grant. So cohomology restricts what kind of bundles you can have (are they trivial? how many linearly independent sections might they have?). Chern-Weil theory might be something to look up if this sounds cool.
Something to note though, all vector bundles are homotopy equivalences.
Also, Peter May wrote a little memoir called Classifying spaces and fibrations where he writes down classifying spaces for fibrations with fiber $F$. These have significantly less structure than a plain old fiber bundle. Granted, there are restrictions on when we have classification, but usually they are pretty harmless, and any compact smooth manifold should satisfy them.
